Skip to content

No lazy parsing type for empty aggregate #127

@aothms

Description

@aothms

Causes trouble when, e.g copying instances to new file.

https://github.com/IfcOpenShell/IfcOpenShell/blob/master/src/ifcparse/IfcParse.cpp#L665

>>> import ifcopenshell
>>> f1, f2 = ifcopenshell.open("Duplex_A_20110907_optimized.ifc"), ifcopenshell.open()
>>> e = f1.by_type("IFCRELCONNECTSPATHELEMENTS")[0]
>>> e
#25545=IfcRelConnectsPathElements('02iC9ReMz2eg14XDwe6Zdn',#1,$,$,$,#133,#220,(),(),.ATEND.,.ATPATH.)
>>> f2.add(e)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\lib\site-packages\ifcopenshell\file.py", line 49, in add
    return entity_instance(self.wrapped_data.add(inst.wrapped_data))
  File "C:\Python27\lib\site-packages\ifcopenshell\ifcopenshell_wrapper.py", line 1284, in add
    return _ifcopenshell_wrapper.file_add(self, e)
RuntimeError: Unknown argument encountered

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions