Hi All,
I am doing some tests from Blender to BlenderBIM without using the native BB tools with an aim to have more parametric setups.
As a first I am using a mesh object edge outline that is fed into another object and made into a slab via a simple geometry nodes setup. The same outline is also fed into another object with geometry nodes made into a wall via another geonodes modifier. The BlenderBIM setup is uses IFC, building, storey, project settings. I then try to create some drawings and I get the following error:
Python: Traceback (most recent call last):
File "C:\Users\dimit\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\blenderbim\bim\module\drawing\operator.py", line 203, in invoke
return self.execute(context)
File "C:\Users\dimit\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\blenderbim\bim\module\drawing\operator.py", line 226, in execute
self.drawing = self.file.by_id(drawing_id)
File "C:\Users\dimit\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\blenderbim\libs\site\packages\ifcopenshell\file.py", line 388, in by_id
return self[id]
File "C:\Users\dimit\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\blenderbim\libs\site\packages\ifcopenshell\file.py", line 376, in __getitem__
return entity_instance(self.wrapped_data.by_id(key), self)
File "C:\Users\dimit\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\blenderbim\libs\site\packages\ifcopenshell\ifcopenshell_wrapper.py", line 4571, in by_id
return _ifcopenshell_wrapper.file_by_id(self, id)
RuntimeError: Instance #0 not found
It seems that the Wall and Slab objects that contain geometry nodes modifiers, may not work properly as IFC objects . Furthermore, making a wall with a different modifier-based setup, I can see that there is not outline cut unless the modifiers are applied.
Below is a file with a view and walls with a modifier
If I apply the modifier, then there is a clear cut line and the drawing exports properly
What's interesting is that if I re-open the the saved IFC file, since it's pure IFC, I can export the drawing. While at the same time the saved blender file contains the parametric information. That's my sort of workaround at the moment.
I am curious though, is it possible to have an IFC representation with modifiers? Or more specifically creating drawings? Since it seems that under the hood, the correct version of the geometry with all modifiers applied is being saved in the IFC, I am wondering whether that temporary "apply all modifiers" geometry could also be used within the .blend file for output of drawings.
On a separate note, I have been looking for resources on using Sverchok with BB, but I am not finding much. Does any one have some resources on how to get started, how the linking works? Or is it along the lines of creating solids and then converting them into IFC? I found a page for something called IFC Sverchok https://blenderbim.org/docs-python/ifcsverchok/installation.html, but a link on the page points me to the main blenderbim.org page.