Error creating a Section Drawing of an Inset Wall.

Thought this would be important to know. I’ve been learning Bonsai recently and came up against this error when trying to model a wall in my house.


If I place the camera at very specific place (3D cursor location in first image) where I need to make a section of a wall inset (can be as simple as nook in the wall), which in the section view gets visually seperated from the outside lines of the wall on all sides, I keep getting this error when trying to create a drawing:

Python: Traceback (most recent call last):
File "C:\Users..\Blender\4.3\extensions.local\lib\python3.11\site-packages\bonsai\bim\module\drawing\operator.py", line 299, in execute
linework_svg = self.generate_linework(context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users..\Blender\4.3\extensions.local\lib\python3.11\site-packages\bonsai\bim\module\drawing\operator.py", line 881, in generate_linework
self.merge_linework_and_add_metadata(root)
File "C:..\Blender\4.3\extensions.local\lib\python3.11\site-packages\bonsai\bim\module\drawing\operator.py", line 1437, in merge_linework_and_add_metadata
for subpath in path.attrib["d"].split("M")[1:]:
~~~^^^^^
File "src\lxml\etree.pyx", line 2548, in lxml.etree._Attrib.getitem
KeyError: 'd'

And the drawing isn’t created. Through tinkering around with the camera settings I found that the issue arrises, IF IN THE SECTION THERE IS AN OUTER LINE AND AN INNER LINE FOR AN OBJECT, that don’t connect. In the attached file I’ve reproduced it using a simple shape.

If I remodel the said wall and add a small gap from outside of the cut to the inside, so that ultimately the inside line meets the outside, the issue gets resolved, but I still view this as a bug. The wall In my house actually had this shape and I wanted to make a section to know all the elevations of the inset wall, so I think there is definitley a need to handle this situation. The bug happened both when I used a wall and voids to model the inset and when I modeled the wall from scratch and assigned ifcwalltype to it. The full geometry doesn't seem to matter, only the place/angle where the object gets sectioned/cut.

Bug happened using Bonsai 0.8.2, Blender 4.3.2 and windows 11.

Comments

Sign In or Register to comment.