Skip to content

Commit

Permalink
Fix import bug getting geometry type of objects without a representation
Browse files Browse the repository at this point in the history
E.g. an IfcGridAxis
  • Loading branch information
Moult committed Jul 31, 2020
1 parent e63f083 commit e9cd48c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ifcblenderexport/blenderbim/bim/import_ifc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1778,10 +1778,10 @@ def get_representation_cartesian_transformation(self, element):
return representation.Items[0].MappingTarget

def get_geometry_type(self, element):
tree = []
if hasattr(element, 'Representation'):
tree = self.file.traverse(element.Representation)
elif hasattr(element, 'RepresentationMaps'):
tree = []
for representation_map in element.RepresentationMaps:
tree.extend(self.file.traverse(representation_map))
representations = [e for e in tree if e.is_a('IfcRepresentation') \
Expand Down

0 comments on commit e9cd48c

Please sign in to comment.