@jes_r said:
@theoryshaw said:
does this help?
I'm going to try it, seems like it works for this case!
This should work, however I get this error if I want to place any of the standard/ default tags:
Python: Traceback (most recent call last):
File "C:\Users\Gebruiker\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\Gebruiker\AppData\Roaming\Blender Foundation\Blender\4.2\extensions.local\lib\python3.11\site-packages\bonsai\bim\module\drawing\workspace.py", line 278, in _execute
getattr(self, f"hotkey_{self.hotkey}")()
File "C:\Users\Gebruiker\AppData\Roaming\Blender Foundation\Blender\4.2\extensions.local\lib\python3.11\site-packages\bonsai\bim\module\drawing\workspace.py", line 304, in hotkey_S_A
create_annotation()
File "C:\Users\Gebruiker\AppData\Roaming\Blender Foundation\Blender\4.2\extensions.local\lib\python3.11\site-packages\bonsai\bim\module\drawing\workspace.py", line 184, in create_annotation
create_annotation_occurrence(bpy.context)
File "C:\Users\Gebruiker\AppData\Roaming\Blender Foundation\Blender\4.2\extensions.local\lib\python3.11\site-packages\bonsai\bim\module\drawing\workspace.py", line 171, in create_annotation_occurrence
bonsai.core.type.assign_type(tool.Ifc, tool.Type, element=element, type=relating_type)
File "C:\Users\Gebruiker\AppData\Roaming\Blender Foundation\Blender\4.2\extensions.local\lib\python3.11\site-packages\bonsai\core\type.py", line 39, in assign_type
type_tool.change_object_data(obj, type_data, is_global=False)
File "C:\Users\Gebruiker\AppData\Roaming\Blender Foundation\Blender\4.2\extensions.local\lib\python3.11\site-packages\bonsai\tool\type.py", line 33, in change_object_data
tool.Geometry.change_object_data(obj, data, is_global)
File "C:\Users\Gebruiker\AppData\Roaming\Blender Foundation\Blender\4.2\extensions.local\lib\python3.11\site-packages\bonsai\tool\geometry.py", line 54, in change_object_data
obj.data = data
^^^^^^^^
TypeError: bpy_struct: item.attr = val: Object.data expected a Image type, not Mesh
Happens in a new file too
(Bonsai 0.8.0 and Blender 4.2.1)