Error when I insert a bend

I get this error when I want to insert a bend.
I have enabled Developer Extras under Blender Preferences - Interface - Display.
Use F3 then Add Bend.
Can anyone help me with troubleshooting?

```
os: Windows
os_version: 10.0.19045
python_version: 3.11.7
architecture: ('64bit', 'WindowsPE')
machine: AMD64
processor: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
blender_version: 4.2.1 LTS
bonsai_version: 0.8.0
bonsai_commit_hash: None
last_actions: 
# ifcopenshell.api: owner.update_owner_history
>>> {"element": {"cast_type": "entity_instance", "value": 72342, "Name": null}}
# ifcopenshell.api: geometry.disconnect_path
>>> {"element": {"cast_type": "entity_instance", "value": 72268, "Name": "PipeSegment"}, "connection_type": "ATEND"}
# ifcopenshell.api: geometry.add_axis_representation
>>> {"context": {"cast_type": "entity_instance", "value": 16, "Name": null}, "axis": "[Vector((-1.9221315028516983e-07, -1.501934465686361e-09, 9.30901862261635e-08)), Vector((-1.6276922565339191e-07, -1.1435367097689664e-09, 0.38999685645103455))]"}
# ifcopenshell.api: geometry.unassign_representation
>>> {"product": {"cast_type": "entity_instance", "value": 72268, "Name": "PipeSegment"}, "representation": {"cast_type": "entity_instance", "value": 72394, "Name": null}}
# ifcopenshell.api: geometry.remove_representation
>>> {"representation": {"cast_type": "entity_instance", "value": 72394, "Name": null}}
# ifcopenshell.api: geometry.add_profile_representation
>>> {"context": {"cast_type": "entity_instance", "value": 15, "Name": null}, "profile": {"cast_type": "entity_instance", "value": 29870, "Name": null}, "depth": "0.38999676730576904", "cardinal_point": "5", "clippings": "[]", "placement_zx_axes": "((0.0, 0.0, 1.0), (1.0, 0.0, 0.0))"}
# ifcopenshell.api: geometry.unassign_representation
>>> {"product": {"cast_type": "entity_instance", "value": 72268, "Name": "PipeSegment"}, "representation": {"cast_type": "entity_instance", "value": 72401, "Name": null}}
# ifcopenshell.api: geometry.remove_representation
>>> {"representation": {"cast_type": "entity_instance", "value": 72401, "Name": null}}
# ifcopenshell.api: geometry.edit_object_placement
>>> {"product": {"cast_type": "entity_instance", "value": 72302, "Name": null}, "matrix": "<Matrix 4x4 (0.0000, -0.0000,  1.0000, -2.1559)\n            (1.0000, -0.0000, -0.0000, -7.3689)\n            (0.0000,  1.0000,  0.0000,  0.1801)\n            (0.0000,  0.0000,  0.0000,  1.0000)>", "is_si": "True"}
# ifcopenshell.api: owner.update_owner_history
>>> {"element": {"cast_type": "entity_instance", "value": 72302, "Name": null}}
last_error: Traceback (most recent call last):
  File "C:\Users\nhgre\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\.local\lib\python3.11\site-packages\bonsai\bim\ifc.py", line 408, in execute_ifc_operator
    result = getattr(operator, "_execute")(context)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\nhgre\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\.local\lib\python3.11\site-packages\bonsai\bim\module\model\mep.py", line 1166, in _execute
    fitting_data = MEPGenerator().get_compatible_fitting_type(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\nhgre\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\.local\lib\python3.11\site-packages\bonsai\bim\module\model\mep.py", line 515, in get_compatible_fitting_type
    return pack_return_data(fitting_type, ports, segments_data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\nhgre\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\.local\lib\python3.11\site-packages\bonsai\bim\module\model\mep.py", line 472, in pack_return_data
    connected_port = tool.System.get_connected_port(start_port)
                                                    ^^^^^^^^^^
UnboundLocalError: cannot access local variable 'start_port' where it is not associated with a value

ifc: 1_sal - Copy (3).ifc
schema: IFC4
preprocessor_version: IfcOpenShell 0.8.0
originating_system: Bonsai 0.8.0
```
Sign In or Register to comment.