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

Method _require_model

src/ifcmcp/ifcmcp/core.py:228–231  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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."""

Callers 15

ifc_saveMethod · 0.95
ifc_summaryMethod · 0.95
ifc_treeMethod · 0.95
ifc_infoMethod · 0.95
ifc_selectMethod · 0.95
ifc_relationsMethod · 0.95
ifc_clashMethod · 0.95
ifc_contextsMethod · 0.95
ifc_materialsMethod · 0.95
ifc_editMethod · 0.95
ifc_validateMethod · 0.95
ifc_scheduleMethod · 0.95

Calls 1

IfcSessionErrorClass · 0.85

Tested by

no test coverage detected