mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 02:47:48 +00:00
See #2520. You can now duplicate drawings.
This commit is contained in:
@@ -502,8 +502,7 @@ def get_decomposition(element):
|
||||
|
||||
|
||||
def get_grouped_by(element):
|
||||
"""
|
||||
Retrieves all subelements of an element based on the group.
|
||||
"""Retrieves all subelements of an element based on the group.
|
||||
|
||||
:param element: The IFC element
|
||||
:return: All subelements of the group
|
||||
@@ -513,7 +512,7 @@ def get_grouped_by(element):
|
||||
.. code:: python
|
||||
|
||||
element = file.by_type("IfcGroup")[0]
|
||||
subelements = ifcopenshell.util.element.get_group(element)
|
||||
subelements = ifcopenshell.util.element.get_grouped_by(element)
|
||||
"""
|
||||
queue = [element]
|
||||
results = []
|
||||
|
||||
Reference in New Issue
Block a user