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

Function get_unit_name

src/ifcfm/ifcfm/cobie24.py:958–960  ·  view source on GitHub ↗
(unit: ifcopenshell.entity_instance)

Source from the content-addressed store, hash-verified

956
957
958def get_unit_name(unit: ifcopenshell.entity_instance) -> Union[str, None]:
959 if unit.is_a("IfcNamedUnit"):
960 return val(unit.Name)
961
962
963def get_created_by(element: ifcopenshell.entity_instance) -> Union[str, None]:

Callers 1

get_property_unitFunction · 0.70

Calls 2

valFunction · 0.70
is_aMethod · 0.45

Tested by

no test coverage detected