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

Function get_classification_identification

src/ifcfm/ifcfm/basic.py:219–224  ·  view source on GitHub ↗
(element: ifcopenshell.entity_instance)

Source from the content-addressed store, hash-verified

217
218
219def get_classification_identification(element: ifcopenshell.entity_instance) -> Union[str, None]:
220 references = list(ifcopenshell.util.classification.get_references(element))
221 if references:
222 if hasattr(references[0], "Identification"):
223 return references[0].Identification
224 return references[0].ItemReference
225
226
227def get_classification_name(element: ifcopenshell.entity_instance) -> Union[str, None]:

Callers 4

get_facility_dataFunction · 0.85
get_space_dataFunction · 0.85
get_element_type_dataFunction · 0.85
get_system_dataFunction · 0.85

Calls 1

get_referencesMethod · 0.45

Tested by

no test coverage detected