mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 09:32:37 +00:00
Fixed console errors with BIM Tool when boundary object is selected
This commit is contained in:
@@ -270,7 +270,9 @@ class AuthoringData:
|
|||||||
usage = tool.Model.get_usage_type(element)
|
usage = tool.Model.get_usage_type(element)
|
||||||
if not usage:
|
if not usage:
|
||||||
representation = tool.Geometry.get_active_representation(obj)
|
representation = tool.Geometry.get_active_representation(obj)
|
||||||
if representation and representation.RepresentationType == "SweptSolid":
|
# besides IfcRepresentation it could be IfcCurveBoundedPlane
|
||||||
|
# if IfcRelSpaceBoundary selected
|
||||||
|
if representation and getattr(representation, "RepresentationType", None) == "SweptSolid":
|
||||||
usage = "SWEPTSOLID"
|
usage = "SWEPTSOLID"
|
||||||
else:
|
else:
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user