| 937 | super().__init__(value, uri, cardinality, instructions) |
| 938 | |
| 939 | def filter( |
| 940 | self, ifc_file: ifcopenshell.file, elements: Optional[list[ifcopenshell.entity_instance]] |
| 941 | ) -> list[ifcopenshell.entity_instance]: |
| 942 | if isinstance(elements, list): |
| 943 | return super().filter(ifc_file, elements) |
| 944 | return ifc_file.by_type("IfcObjectDefinition") |
| 945 | |
| 946 | def __call__(self, inst: ifcopenshell.entity_instance, logger: Optional[Logger] = None) -> MaterialResult: |
| 947 | material = ifcopenshell.util.element.get_material(inst, should_skip_usage=True) |