You can now make the selected element in the spatial decomposition panel active

This commit is contained in:
Dion Moult
2024-09-02 20:37:04 +10:00
parent 1a8be005cf
commit fb422692c8
4 changed files with 21 additions and 0 deletions
+4
View File
@@ -159,6 +159,10 @@ def select_decomposed_elements(
spatial.select_products(elements)
def select_decomposed_element(ifc: tool.Ifc, spatial: tool.Spatial, element: ifcopenshell.entity_instance) -> None:
spatial.set_active_object(ifc.get_object(element))
def generate_space(ifc: tool.Ifc, model: tool.Model, root: tool.Root, spatial: tool.Spatial, type: tool.Type) -> None:
if not root.get_default_container():
raise NoDefaultContainer()