cad_new_drawing |
Initializes or resets drawing space, filename, and engineering units. |
name, units |
cad_add_layers |
Creates layers with standard AutoCAD ACI colors, linetypes, and lineweights. |
layers: [{ name, color, linetype, lineweight }] |
cad_batch_add_entities |
High-speed bulk insertion of primitives without command line overhead. |
entities: [ { type, ...props } ] |
cad_generate_parametric |
Algorithmic generators for complex engineering assemblies. |
type: structural_grid, truss, mechanical_flange, gear, architectural_floorplan |
cad_run_commands |
Runs native AutoCAD command-line strings with optional Quick Select filtering. |
commands: "LINE 0,0 100,0; ZOOM E", select: {...} |
cad_list_commands |
Searches and lists all implemented CAD commands, aliases, and descriptions. |
filter: "layer" |
cad_execute_script |
Runs procedural JavaScript generator loops in an isolated Node sandbox. |
code: "for(let i=0; i<100; i++) ..." |
cad_create_block |
Defines reusable Blocks with geometry and dynamic ATTDEF tags. |
name, basePoint, entities |
cad_insert_block |
Inserts block references with position, scale, rotation, and attribute values. |
name, position, scale, rotation, attributes |
cad_open_dxf |
Opens an existing ASCII DXF (AutoCAD R12 to 2018+) into the active session. |
filename: "drawing.dxf" |
cad_export_dxf |
Exports AutoCAD 2000 (AC1015) compliant ASCII DXF with symbol tables. |
filename: "output.dxf" |
cad_export_svg |
Renders high-fidelity vector SVG preview for visual agent inspection. |
filename: "preview.svg", width, height |
cad_get_stats |
Inspects drawing metrics: entity count, layer distribution, and bounds. |
None |
cad_share_drawing |
Uploads drawing to Cloudflare D1; returns real-time view & edit URLs. |
name, expiresDays: 7 |
cad_open_shared |
Fetches and loads a shared cloud drawing by ID or URL into the session. |
urlOrId: "https://autocad.site/?share=..." |
cad_update_shared / cad_revoke_shared |
Updates or revokes shared drawings using editToken / ownerToken. |
id, token |