Compute quantities
compute_quantitiesMeasured at the body (exact where the solid is planar): NetVolume, NetSideArea, GrossSideArea, NetArea, GrossArea, OuterSurfaceArea, GrossVolume, OuterDimensionSideArea, Centroid, Mass. Length: the axis of a segment, beam, member, column or pile whose body is one extrusion, from the file (source {kind: file, path}) or a coaxial planar mesh (measured mesh); a bend, clipped or mapped body: undetermined, never 0. Other Qto names (Width, Height ...) are file values: find_elements fields or sum. Slope: fall of a straight segment (0.02 = 2 %, positive falls) along its SINK/SOURCE port flow, else start to end; with invert_m, per element. Reinforcing bar or mesh: Length, Count, Mass from the file (Qto, BarLength) else the bars' directrix (source measured/directrix), Mass = length x pi d^2/4 x density - a density the file lacks is steel 7850 as {kind: assumption, rule}, a sum with one assumed term is an assumption. Per element or summed (per group: each find_elements group's set). Every number carries source ({kind: measured, method}), every sum its coverage (elements with a measurable body; one with an unbuilt item is partial_body, none built no_items_built; only quantities defined for the class count). NetVolume, Mass and the areas take at most 100 elements per call (MEASURE_TOO_LARGE names the parts as sets). Mass is NetVolume x Pset_MaterialCommon.MassDensity of the IfcMaterial in the unit the file declares (source.density); none declared, layers of different density or no density unit stay undetermined - never a default (steel of reinforcement above excepted). NetSideArea is the middle plane (NetVolume / thickness); GrossSideArea and GrossArea the same, GrossVolume the volume, of the one file extrusion, before its openings (source file; clipped, no opening: measured; a profile with voids or not one extrusion: undetermined); a file value of one face differs at the ends. NetArea/GrossArea also of pavement, course. CutVolume/FillVolume of a terrain need along. Read-only.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target": "<target>",
"quantities": "<quantities>"
},
"name": "compute_quantities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| per | No | One row per element (default; an unmeasured quantity there as {value: null, reason}) or one sum; coverage counts an element measured only with every asked quantity, coverage_per_quantity each | |
| along | No | CutVolume/FillVolume of one terrain only, then required: sections square to the axis in plan, average end areas, source assumption with deviation_m3 | |
| target | Yes | Which elements: exactly one of guid, guids, set, filter | |
| earthwork | No | Your soil factors, with along; none is assumed, without it no loose or compacted volume. Each result is an assumption naming the factor as source user | |
| quantities | Yes | Which quantities; IfcSpace (guids, set or a filter on IfcSpace alone): GrossArea and GrossVolume of its prism, profile area x height from the file; NetFloorArea = GrossArea minus the plan area of slab openings at its floor. Wall Length: its one upright extrusion, side face / height (source file). IfcRoof body: NetArea, GrossArea the mid surface of its folded plate (measured; Gross only where no opening voids it; a roof of parts: measure the parts). NetArea, NetSideArea beside curved faces only where they are sides (a round hole, a fillet). OuterDimensionSideArea (own name, no Qto): the outer side of a wall with Pset_WallCommon.IsExternal true - the side no space stands beside - run at each corner to the outer face of the touching external wall (source assumption: rule, deviation_m2 against its own side, corners), every opening deducted (openings_m2), no VOB/C rule; no IsExternal, no space or spaces on both sides: undetermined |