This commit is contained in:
Andrej730
2026-02-04 18:00:07 +05:00
parent 95480a231c
commit 50d00eba20
6 changed files with 18 additions and 16 deletions
@@ -1136,8 +1136,7 @@ class DrawPolylineProfile(bpy.types.Operator, PolylineOperator, tool.Ifc.Operato
DumbProfileJoiner().join_V(profile2["obj"], profile1["obj"]) DumbProfileJoiner().join_V(profile2["obj"], profile1["obj"])
if connect_IfcFlowSegments: if connect_IfcFlowSegments:
bpy.ops.bim.mep_connect_elements( bpy.ops.bim.mep_connect_elements(
obj1_name=profile1["obj"].name, obj1_name=profile1["obj"].name, obj2_name=profile2["obj"].name
obj2_name=profile2["obj"].name
) )
def modal(self, context, event): def modal(self, context, event):
+1 -1
View File
@@ -370,7 +370,7 @@ class BIMProjectProperties(PropertyGroup):
load_indexed_maps: BoolProperty( load_indexed_maps: BoolProperty(
name="Load Indexed Maps", name="Load Indexed Maps",
description="Load indexed maps (UV and color maps)", description="Load indexed maps (UV and color maps)",
default=False, # Very slow and hackishly implemented default=False, # Very slow and hackishly implemented
) )
links: CollectionProperty(name="Links", type=Link) links: CollectionProperty(name="Links", type=Link)
active_link_index: IntProperty(name="Active Link Index") active_link_index: IntProperty(name="Active Link Index")
+1 -1
View File
@@ -172,7 +172,7 @@ class IfcClassData:
), ),
) )
) )
if (ifc_class and "IfcCableCarrierSegment" in ifc_class): if ifc_class and "IfcCableCarrierSegment" in ifc_class:
templates.extend( templates.extend(
( (
( (
@@ -703,7 +703,9 @@ class AddElement(bpy.types.Operator, tool.Ifc.Operator):
default_thickness = 0.005 default_thickness = 0.005
default_inner_fillet_radius = 0.005 default_inner_fillet_radius = 0.005
default_outer_fillet_radius = 0.005 default_outer_fillet_radius = 0.005
profile_name = f"{props.ifc_class}-{default_x_dim*1000}x{default_y_dim*1000}x{default_thickness*1000}" profile_name = (
f"{props.ifc_class}-{default_x_dim*1000}x{default_y_dim*1000}x{default_thickness*1000}"
)
profile = tool.Ifc.get().create_entity( profile = tool.Ifc.get().create_entity(
"IfcRectangleHollowProfileDef", "IfcRectangleHollowProfileDef",
ProfileName=profile_name, ProfileName=profile_name,
@@ -489,7 +489,6 @@ class EstablishPathDirection(bpy.types.Operator, tool.Ifc.Operator):
def _execute(self, context): def _execute(self, context):
connected_port = tool.Ifc.get().by_id(self.port_id) connected_port = tool.Ifc.get().by_id(self.port_id)
if not connected_port or not connected_port.is_a("IfcDistributionPort"): if not connected_port or not connected_port.is_a("IfcDistributionPort"):
self.report({"ERROR"}, "Invalid port specified.") self.report({"ERROR"}, "Invalid port specified.")
return {"CANCELLED"} return {"CANCELLED"}
@@ -503,7 +502,7 @@ class EstablishPathDirection(bpy.types.Operator, tool.Ifc.Operator):
next_element = tool.System.get_port_relating_element(connected_port) next_element = tool.System.get_port_relating_element(connected_port)
ports = tool.System.get_ports(next_element) ports = tool.System.get_ports(next_element)
segments_processed = 0 segments_processed = 0
while (len(ports) == 2): while len(ports) == 2:
if ports[0].id() == connected_port.id(): if ports[0].id() == connected_port.id():
other_port = ports[1] other_port = ports[1]
else: else:
+3 -1
View File
@@ -333,7 +333,9 @@ class BIM_PT_port(Panel):
else: else:
cols[7].label(text="", icon="BLANK1") cols[7].label(text="", icon="BLANK1")
cols[8].label(text="") cols[8].label(text="")
cols[9].operator("bim.establish_path_direction", text="", icon="CON_FOLLOWPATH").port_id = connected_port.id() cols[9].operator("bim.establish_path_direction", text="", icon="CON_FOLLOWPATH").port_id = (
connected_port.id()
)
else: else:
cols[4].label(text="", icon="BLANK1") cols[4].label(text="", icon="BLANK1")
cols[5].label(text="", icon="BLANK1") cols[5].label(text="", icon="BLANK1")