MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / get_parent

Method get_parent

src/ifctester/ifctester/facet.py:624–631  ·  view source on GitHub ↗
(self, element)

Source from the content-addressed store, hash-verified

622 return PartOfResult(is_pass, reason)
623
624 def get_parent(self, element):
625 parent = ifcopenshell.util.element.get_parent(element)
626 if not parent:
627 for rel in getattr(element, "HasAssignments", []) or []:
628 if rel.is_a("IfcRelAssignsToGroup"):
629 parent = rel.RelatingGroup
630 break
631 return parent
632
633
634class Property(Facet):

Callers 11

__call__Method · 0.95
yield_parentsFunction · 0.80
_get_element_valueFunction · 0.80
set_element_valueFunction · 0.80
_traverse_upFunction · 0.80
_all_relationsFunction · 0.80
can_nestMethod · 0.80
can_aggregateMethod · 0.80

Calls 1

is_aMethod · 0.45