Workflow of loading an IFC in BlenderBIM when scripting
There is this convenient extension for VS Code from Jacques Lucke to have a connection between Blender and VS Code with instant updates.
When working with geometry using the python ifcopenshell.api
. I would like to see the IFC results of the code I run in BlenderBIM instantly.
Is there any decent workflow for this? Or is there already something in place for this I don't know about? Is there a need?
Tagged:
Comments
The IFC Debug panel has "create shape" functions you can use to see what the new geometry is like, perhaps that helps?
@Moult
Thanks for you answer, that helps. But I mean more like a development environment. I just named geometry as a visual example. But I would like to able to load an
IfcProject
withIfcSite
andIfBuilding
etc. straight into BlenderBIM after running a python script. For example this is being done from the python console within Blender:It uses very hacky code to load the created IFC with ifcopenshell in BlenderBIM. I would like something more streamlined and more professional.
This is the code used to load the IFC in BlenderBIM
But in this workflow you need to add this snippet to your code. I was thinking if there is a need of a Blender-addon in which the end user can interact with ifcopenshell and see the ifc which is being created straight into BlenderBIM.
https://community.osarch.org/discussion/1523/blenderbim-python-flow-of-adding-an-removing-an-ifc-element-to-an-existing-ifc#latest
This is related, I would also like to know a decent workflow when editing/modifying an existing IFC with ifcopenshell python and loading the results directly into BlenderBIM
There is a "reload ifc" operator you might find useful
bpy.ops.bim.reload_ifc_file()
https://github.com/IfcOpenShell/IfcOpenShell/blob/v0.7.0/src/blenderbim/blenderbim/bim/operator.py#L596-L665