mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
"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:
@@ -213,6 +213,7 @@ class AuthoringData:
|
|||||||
if bpy.context.active_object:
|
if bpy.context.active_object:
|
||||||
representation = tool.Geometry.get_active_representation(bpy.context.active_object)
|
representation = tool.Geometry.get_active_representation(bpy.context.active_object)
|
||||||
if representation and representation.is_a("IfcShapeRepresentation"):
|
if representation and representation.is_a("IfcShapeRepresentation"):
|
||||||
|
representation = tool.Geometry.resolve_mapped_representation(representation)
|
||||||
return representation.RepresentationType
|
return representation.RepresentationType
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
@@ -616,6 +616,7 @@ class Hotkey(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
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)
|
||||||
|
representation = tool.Geometry.resolve_mapped_representation(representation)
|
||||||
if representation and representation.RepresentationType == "SweptSolid":
|
if representation and representation.RepresentationType == "SweptSolid":
|
||||||
usage = "SWEPTSOLID"
|
usage = "SWEPTSOLID"
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user