Testing ifc_tools.create_document(doc), some errors returned, not sure if I am following correctly -
Code: Select all
>>> import ifc_tools
>>> doc=FreeCAD.ActiveDocument
>>> ifc_tools.create_document(doc)
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/home/paullee/.local/share/FreeCAD/Mod/FreeCAD-BlenderBIM/./ifc_tools.py", line 67, in create_document
ifcfile = create_ifcfile()
File "/home/paullee/.local/share/FreeCAD/Mod/FreeCAD-BlenderBIM/./ifc_tools.py", line 94, in create_ifcfile
comp = ifcfile.by_type("IfcCompany")[0]
File "/home/paullee/.local/lib/python3.10/site-packages/ifcopenshell/file.py", line 363, in by_type
return [entity_instance(e, self) for e in self.wrapped_data.by_type(type)]
File "/home/paullee/.local/lib/python3.10/site-packages/ifcopenshell/ifcopenshell_wrapper.py", line 3472, in by_type
return _ifcopenshell_wrapper.file_by_type(self, *args)
RuntimeError: Entity with name 'IfcCompany' not found in schema 'IFC4'