(pset: ifcopenshell.entity_instance, prop_name: str)
| 1093 | |
| 1094 | |
| 1095 | def get_property_unit(pset: ifcopenshell.entity_instance, prop_name: str) -> Union[str, None]: |
| 1096 | for prop in getattr(pset, "HasProperties", []) or []: |
| 1097 | if prop.Name == prop_name: |
| 1098 | unit = getattr(prop, "Unit", None) |
| 1099 | if unit: |
| 1100 | return get_unit_name(unit) |
| 1101 | |
| 1102 | |
| 1103 | # TODO: never used? |
no test coverage detected