mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 13:46:54 +00:00
You can now disconnect a wall from a roof clipping
This commit is contained in:
@@ -244,6 +244,14 @@ class ChangeExtrusionDepth(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
return
|
return
|
||||||
extrusion.Depth = self.depth
|
extrusion.Depth = self.depth
|
||||||
if element.is_a("IfcWall"):
|
if element.is_a("IfcWall"):
|
||||||
|
for rel in element.ConnectedFrom:
|
||||||
|
if rel.is_a() == "IfcRelConnectsElements":
|
||||||
|
ifcopenshell.api.run(
|
||||||
|
"geometry.disconnect_element",
|
||||||
|
tool.Ifc.get(),
|
||||||
|
relating_element=rel.RelatingElement,
|
||||||
|
related_element=element,
|
||||||
|
)
|
||||||
wall_objs.append(obj)
|
wall_objs.append(obj)
|
||||||
if wall_objs:
|
if wall_objs:
|
||||||
DumbWallRecalculator().recalculate(wall_objs)
|
DumbWallRecalculator().recalculate(wall_objs)
|
||||||
|
|||||||
Reference in New Issue
Block a user