mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 18:16:40 +00:00
Representation UI - show IfcTopologyRepresentation #4038
Now it will show representation items count and will load representation items for IfcTopologyRepresentations.
This commit is contained in:
@@ -161,7 +161,8 @@ class RepresentationItemsData:
|
||||
assert obj
|
||||
element = tool.Geometry.get_active_representation(obj)
|
||||
if element:
|
||||
if not element.is_a("IfcShapeRepresentation"):
|
||||
# IfcShapeRepresentation or IfcTopologyRepresentation.
|
||||
if not element.is_a("IfcShapeModel"):
|
||||
return 0
|
||||
queue = list(element.Items)
|
||||
while queue:
|
||||
|
||||
@@ -1855,7 +1855,8 @@ class EnableEditingRepresentationItems(bpy.types.Operator, tool.Ifc.Operator):
|
||||
if bpy.context.active_object.data and hasattr(bpy.context.active_object.data, "BIMMeshProperties"):
|
||||
active_representation_id = bpy.context.active_object.data.BIMMeshProperties.ifc_definition_id
|
||||
element = tool.Ifc.get().by_id(active_representation_id)
|
||||
if not element.is_a("IfcShapeRepresentation"):
|
||||
# IfcShapeRepresentation or IfcTopologyRepresentation.
|
||||
if not element.is_a("IfcShapeModel"):
|
||||
return
|
||||
queue = list(element.Items)
|
||||
while queue:
|
||||
|
||||
Reference in New Issue
Block a user