(ifc_class: str, attr_name: str)
| 23 | |
| 24 | |
| 25 | def getattr_(ifc_class: str, attr_name: str) -> W.attribute: |
| 26 | schema = ifcopenshell.schema_by_name("IFC4") |
| 27 | declaration = schema.declaration_by_name(ifc_class).as_entity() |
| 28 | assert declaration |
| 29 | i = declaration.attribute_index(attr_name) |
| 30 | attr = declaration.all_attributes()[i] |
| 31 | return attr |
| 32 | |
| 33 | |
| 34 | class TestGetPrimitiveType: |
no test coverage detected