(self)
| 226 | # Session lifecycle |
| 227 | # ----------------- |
| 228 | def _require_model(self) -> ifcopenshell.file: |
| 229 | if self.model is None: |
| 230 | raise IfcSessionError("No model loaded. Call ifc_load() or ifc_new() first.") |
| 231 | return self.model |
| 232 | |
| 233 | def ifc_new(self, schema: str = "IFC4") -> dict[str, Any]: |
| 234 | """Create a new empty IFC model in memory.""" |
no test coverage detected