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)
| 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. |
no outgoing calls