getInverse -> get_inverses_by_declaration

Similar to getTotalInverses rename, to prevent confusing with get_inverse.
This commit is contained in:
Andrej
2025-06-11 18:11:26 +05:00
parent eee94f53a4
commit d0f4dd00c7
2 changed files with 13 additions and 1 deletions
@@ -878,7 +878,18 @@ class file:
"""Internal IfcFile pointer address."""
...
def getInverse(self, instance_id, type, attribute_index): ...
def get_inverses_by_declaration(
self, instance_id: int, type: declaration, attribute_index: int
) -> tuple[entity_instance, ...]:
"""Get instance inverses of the particular type defined by ``declaration``.
:param declaration: Type of inverses to find.
Supertypes are also supported - e.g. 'IfcRoot' will also include all 'IfcRelationship' inverses.
:param attribute_index: Find references only from the provided attribute index.
Could be set to ``-1`` to consider all attributes.
"""
...
def getMaxId(self): ...
def get_total_inverses_by_id(self, instance_id: int) -> int: ...
def getUnit(self, unit_type): ...