Arch: fixed import of IFC object without representation

This commit is contained in:
Yorik van Havre 2016-08-01 10:54:09 -03:00
parent 3785cf7631
commit a79d2c6c9b

View File

@ -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: