Arch: Prevent exporting materials as IFC objects

This commit is contained in:
Yorik van Havre
2018-10-24 14:22:38 -03:00
parent 46b152669b
commit ea4fb69e4e

View File

@@ -1484,8 +1484,10 @@ def export(exportList,filename):
if obj.Shape:
if obj.Shape.Edges and (not obj.Shape.Faces):
annotations.append(obj)
# clean objects list of unwanted types
objectslist = [obj for obj in objectslist if obj not in annotations]
objectslist = Arch.pruneIncluded(objectslist)
objectslist = [obj for obj in objectslist if Draft.getType(obj) not in ["Material","MaterialContainer"]]
if FULL_PARAMETRIC:
objectslist = Arch.getAllChildren(objectslist)
products = {} # { Name: IfcEntity, ... }