source list
auto_source_listRebuild a base drawing list from DWG text grids or a live ACAD_TABLE, then mint project-specific code entries and report issues such as numbering gaps, mismatched towers, or uncoded rows.
Instructions
Rebuild the base design's drawing list and mint the project's own codes.
kind names the reader (the profile's source.kind when left blank).
text_grid -- the default -- reads the .dwg headless (the core
converts it; the input is never written), rebuilds its text table (the
profile's source.layer, e-text by default) row by row. acad_table
reads a real ACAD_TABLE instead, through the live seat: the source
drawing is brought into AutoCAD and its table read by one AutoLISP call, so
the seat is left on that drawing -- the one side effect of this otherwise
read-only tool.
Either way each row with a source code becomes a project entry (the
profile's codes.prefix). Section headers and rows with no code are
reported in issues and left out; a tower/plan mismatch or a numbering
gap is reported, not fixed.
order="list" reads the left table then the right one; "row"
interleaves them top down. include_catalog=false drops the two
drawing-list sheets. With out the list is also written to CSV/XLSX.
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": {
"path": "<path>"
},
"name": "auto_source_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fmt | No | ||
| out | No | ||
| kind | No | ||
| path | Yes | ||
| layer | No | ||
| order | No | list | |
| sheet | No | ||
| include_catalog | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||