Write the in-memory model to disk. Empty path overwrites the original file.
(self, path: str = "")
| 244 | return f"Loaded {path}: schema {self.model.schema}, {count} entities" |
| 245 | |
| 246 | def ifc_save(self, path: str = "") -> str: |
| 247 | """Write the in-memory model to disk. Empty path overwrites the original file.""" |
| 248 | model = self._require_model() |
| 249 | target = path if path else self.model_path |
| 250 | if not target: |
| 251 | raise IfcSessionError("No path specified and no original path available.") |
| 252 | model.write(target) |
| 253 | return f"Saved to {target}" |
| 254 | |
| 255 | def ifc_reset(self) -> dict[str, Any]: |
| 256 | """Drop the in-memory model.""" |