Arch: fixed import of IFC object without representation
This commit is contained in:
parent
3785cf7631
commit
a79d2c6c9b
|
@ -405,6 +405,7 @@ def insert(filename,docname,skip=[],only=[],root=None):
|
|||
c = r.Styles[0].Styles[0].Styles[0].SurfaceColour
|
||||
if r.Item:
|
||||
for p in ifcfile.by_type("IfcProduct"):
|
||||
if hasattr(p,"Representation"):
|
||||
if p.Representation:
|
||||
for it in p.Representation.Representations:
|
||||
if it.Items:
|
||||
|
|
Loading…
Reference in New Issue
Block a user