Hello,
I'm working on a project to generate IfcElementTypes from Obj files using IfcOpenShell.
Using the obj2ifc (meshlab) version works for me to create IfcElement instances (IfcFurniture for example) but when I try to create an IfcElementType (like IfcFurnitureType), I get the following error:
Traceback (most recent call last):
File "C:\Users\vince\Desktop\test\obj2ifc-meshlab.py", line 157, in <module>
obj2ifc.execute()
File "C:\Users\vince\Desktop\test\obj2ifc-meshlab.py", line 80, in execute
product = self.file.create_entity(
File "C:\Users\vince\anaconda3\lib\site-packages\ifcopenshell\file.py", line 284, in create_entity
e[idx] = arg
File "C:\Users\vince\anaconda3\lib\site-packages\ifcopenshell\entity_instance.py", line 218, in __setitem__
method = self.method_list[idx]
IndexError: list index out of range
I suspect it's because either the "create_entity" function doesn't work for IfcElementTypes only for "instances" or that I'm not providing the correct additional arguments to the function.
Any insight on this @Moult ?
Thanks!