[IfcOpenShell-Python] How using the ObjectPlacement in ifcwall?
So what i am trying to do is:
There is one representation in the ifc file, and i want it to use for two ifcwall. However i want to add two different ObjectPlacement so the two ifcwall don't overlap.
Right know i have this:
https://github.com/Martin15135215/git_ifc_test/blob/main/test_object_placemnt.py
after adding the ObjectPlacement to the wall, i did not see any difference., when i open it in a ifc viewer
Tagged:
Comments
i saw my mistakes, it did function, however this function


created for length in Millimeter, so i did not see a great difference ?♂️
Now in metre:
the new code is in here -> https://github.com/Martin15135215/git_ifc_test/blob/main/two_ifcwall_different_object_placment.py
The code is inspired by https://blenderbim.org/docs-python/ifcopenshell-python/code_examples.html#create-a-simple-model-from-scratch and by this thread https://community.osarch.org/discussion/1061/ifcopenshell-blenderbim-creating-an-ifcgrid-ifcbuildingstorey-ifcslab-ifcwall-and-youtube-demo#latest
you can use the code in BlenderBim like Ceon did it for his code ->
What's the difference between:
model = ifcopenshell.file()
and
model = ifcopenshell.api.run("context.add_context", ifc_file, context_type="Model")
The first is the entire IfcOpenShell IFC model, the second is the "Model" context (note the capital M)
BIM data is different to 3D - in 3D 1 object has 1 geometry. In BIM, 1 object may have N geometry (e.g. a 3D door, a 2D door swing, a door clearance, a 2D door elevation, etc). To distinguish between these different geometries and when you should use which geometry, IFC has the concept of a "Context", the "Model" context contains all 3D geometry, like the 3D door (via the Model/Body subcontext) and the door clearance (via the Model/Clearance subcontext).
It doesn't have much to do with the theme, but it's similar.
How do I identify the contact surface between two distinct elements that touch and create a solid object, such as a wall, with dimensions of that
contact plane and thickness of 1mm?
For example, a column and a wall. Identify the contact plan between them. Like the imagem below:
In blue the wall and grey the column
One mor image to explain