layer takeoff
auto_layer_takeoffCount entities and sum LINE, ARC, and POLYLINE lengths by layer in AutoCAD model space, convert units, and export the takeoff table to CSV or XLSX.
Instructions
Count entities and sum length per layer over the model space.
layers / types restrict the scan. Lengths are only summed where the
core reported one (LINE / ARC / POLYLINE), converted from the drawing's own
units to unit (mm, cm or m) using the profile's takeoff.length_units.
With path the table is written to CSV/XLSX.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "auto_layer_takeoff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fmt | No | ||
| path | No | ||
| unit | No | m | |
| types | No | ||
| layers | No | ||
| max_entities | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||