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

Method by_guid

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

Return an IFC entity instance filtered by IFC GUID. :param guid: GlobalId value in 22-character encoded form :raises RuntimeError: If `guid` is not found. :returns: An ifcopenshell.entity_instance

(self, guid: str)

Source from the content-addressed store, hash-verified

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.
840
841 :param guid: GlobalId value in 22-character encoded form
842
843 :raises RuntimeError: If `guid` is not found.
844
845 :returns: An ifcopenshell.entity_instance
846 """
847 return self[guid]
848
849 def add(self, inst: ifcopenshell.entity_instance, _id: int = None) -> ifcopenshell.entity_instance:
850 """Adds an entity including any dependent entities to an IFC file.

Calls

no outgoing calls