mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 18:16:40 +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)
|
||||
if not usage:
|
||||
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"
|
||||
else:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user