mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 02:07:36 +00:00
Prevent polyline profile from being called by Column Tool
This commit is contained in:
@@ -954,6 +954,7 @@ class Hotkey(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
def hotkey_S_A(self):
|
def hotkey_S_A(self):
|
||||||
props = bpy.context.scene.BIMModelProperties
|
props = bpy.context.scene.BIMModelProperties
|
||||||
relating_type_id = AuthoringData.data["relating_type_id_current"]
|
relating_type_id = AuthoringData.data["relating_type_id_current"]
|
||||||
|
relating_type_class = AuthoringData.data["ifc_class_current"]
|
||||||
if relating_type_id is None:
|
if relating_type_id is None:
|
||||||
self.report({"ERROR"}, "No relating type selected")
|
self.report({"ERROR"}, "No relating type selected")
|
||||||
return
|
return
|
||||||
@@ -992,7 +993,7 @@ class Hotkey(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
):
|
):
|
||||||
bpy.ops.bim.draw_polyline_slab("INVOKE_DEFAULT")
|
bpy.ops.bim.draw_polyline_slab("INVOKE_DEFAULT")
|
||||||
elif (
|
elif (
|
||||||
relating_type_id and tool.Model.get_usage_type(tool.Ifc.get().by_id(int(relating_type_id))) == "PROFILE"
|
relating_type_id and tool.Model.get_usage_type(tool.Ifc.get().by_id(int(relating_type_id))) == "PROFILE" and relating_type_class not in {"IfcColumnType"}
|
||||||
):
|
):
|
||||||
bpy.ops.bim.draw_polyline_profile("INVOKE_DEFAULT")
|
bpy.ops.bim.draw_polyline_profile("INVOKE_DEFAULT")
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user