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

Method by_id

src/ifcopenshell-python/ifcopenshell/file.py:827–836  ·  view source on GitHub ↗

Return an IFC entity instance filtered by IFC ID. :param id: STEP numerical identifier :raises RuntimeError: If `id` is not found. :returns: An ifcopenshell.entity_instance

(self, id: int)

Source from the content-addressed store, hash-verified

825 return entity_instance(self.wrapped_data.by_guid(str(key)), self)
826
827 def by_id(self, id: int) -> ifcopenshell.entity_instance:
828 """Return an IFC entity instance filtered by IFC ID.
829
830 :param id: STEP numerical identifier
831
832 :raises RuntimeError: If `id` is not found.
833
834 :returns: An ifcopenshell.entity_instance
835 """
836 return self[id]
837
838 def by_guid(self, guid: str) -> ifcopenshell.entity_instance:
839 """Return an IFC entity instance filtered by IFC GUID.

Callers 15

tests.pyFile · 0.45
processMethod · 0.45
editMethod · 0.45
editMethod · 0.45
sv_freeMethod · 0.45
processMethod · 0.45
editMethod · 0.45
processMethod · 0.45
remove_entityMethod · 0.45
editMethod · 0.45
sv_freeMethod · 0.45
processMethod · 0.45

Calls

no outgoing calls