mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 06:21:40 +00:00
You can now make the selected element in the spatial decomposition panel active
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user