"Edit Profile" in BIM Tool for mapped representations

basically now "edit profile" will be shown in BIM Tool UI and will work from shift+e hotkey if the active element's representation is mapped (for example, if it has openings)
This commit is contained in:
Andrej730
2023-10-23 16:50:05 +05:00
parent 3f8a0a91b3
commit 29bd30d3bf
2 changed files with 2 additions and 0 deletions
@@ -213,6 +213,7 @@ class AuthoringData:
if bpy.context.active_object:
representation = tool.Geometry.get_active_representation(bpy.context.active_object)
if representation and representation.is_a("IfcShapeRepresentation"):
representation = tool.Geometry.resolve_mapped_representation(representation)
return representation.RepresentationType
@classmethod
@@ -616,6 +616,7 @@ class Hotkey(bpy.types.Operator, tool.Ifc.Operator):
usage = tool.Model.get_usage_type(element)
if not usage:
representation = tool.Geometry.get_active_representation(obj)
representation = tool.Geometry.resolve_mapped_representation(representation)
if representation and representation.RepresentationType == "SweptSolid":
usage = "SWEPTSOLID"
else: