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

Method ifc_quantify

src/ifcmcp/ifcmcp/core.py:496–502  ·  view source on GitHub ↗

Run quantity take-off on the model using the named rule. Modifies the model in-place; call ifc_save() after.

(self, rule: str, selector: str = "")

Source from the content-addressed store, hash-verified

494 return {"ok": False, "error": f"{type(e).__name__}: {e}"}
495
496 def ifc_quantify(self, rule: str, selector: str = "") -> dict[str, Any]:
497 """Run quantity take-off on the model using the named rule.
498
499 Modifies the model in-place; call ifc_save() after.
500 """
501 model = self._require_model()
502 return run_quantify(model, rule, selector=selector if selector else None)
503
504 # ------------------------
505 # Generic dispatcher + tool specs for LLMs

Callers 1

ifc_quantifyFunction · 0.80

Calls 2

_require_modelMethod · 0.95
run_quantifyFunction · 0.90

Tested by

no test coverage detected