AutoCAD-CLI

Add dimensions, hatch, MTEXT, leaders, tables, viewports, XREFs and multi-page vector PDFs

Ring-1C drafting and sheet-set automation. Add linear/aligned/radial/angular dimensions, associative hatches, multiline text, multileaders and schedule tables, configure paper layouts and viewports, attach XREFs with relative paths, and publish multi-page vector PDFs.

9 of the 91 verbs · Windows x64 · Offline DXF + accoreconsole.exe + Late-bound COM

cad dim [--kind linear|aligned|radial|diameter|angular] [--from P] [--to P] [--at P] [--handle H] [--angle DEG] [--style NAME] [--layer L] [--layout NAME] [--file FILE] [--out FILE] [--acad PATH] [--timeout N] [--apply] [--confirm]` (Ring 1C)
Adds a dimension: linear (rotated by --angle, default 0) or aligned between --from/--to with the dimension line through --at
cad hatch --handle H [--pattern NAME] [--scale S] [--angle DEG] [--associative] [--layer L] [--layout NAME] [--file FILE] [--out FILE] [--acad PATH] [--timeout N] [--apply] [--confirm]` (Ring 1C)
Hatches closed boundary curves (--handle B1,B2: first is the outer loop) with a predefined pattern (default ANSI31, SOLID fills), pattern scale and angle
cad mtext --at P --text T [--width W] [--height H] [--justify TL|TC|TR|ML|MC|MR|BL|BC|BR] [--style NAME] [--layer L] [--layout NAME] [--file FILE] [--out FILE] [--acad PATH] [--timeout N] [--apply] [--confirm]` (Ring 1C)
Adds multiline text (MTEXT format codes such as \P for a new paragraph are kept) with wrap width, text height, attachment point, and text style
cad mleader --from P --to P --text T [--height H] [--style NAME] [--layer L] [--layout NAME] [--file FILE] [--out FILE] [--acad PATH] [--timeout N] [--apply] [--confirm]` (Ring 1C)
Adds a multileader with its arrowhead at --from, landing at --to, and MTEXT content --text
cad table --at P --data-file FILE [--title T] [--row-height H] [--col-width W] [--height H] [--style NAME] [--layer L] [--layout NAME] [--file FILE] [--out FILE] [--acad PATH] [--timeout N] [--apply] [--confirm]` (Ring 1C)
Adds a schedule/BOM TABLE at --at (top-left) from a JSON --data-file {"title":..., "headers":[...], "rows":[[...]]} (at most 5000 rows) with title, header, and data rows, row height, column width, and text height
cad layout-manage --action create|rename|delete|page-setup --name NAME [--new-name NAME] [--paper A0|A1|A2|A3|A4] [--file FILE] [--out FILE] [--acad PATH] [--timeout N] [--apply] [--confirm]` (Ring 1C)
Creates (empty, with only the paper viewport), renames, or deletes a paper-space layout, or applies a page setup: DWG To PDF, ISO full-bleed A0-A4 landscape, millimetres, 1:1 layout plot (--paper, also accepted on create)
cad viewport --layout NAME [--handle H] --center P --width W --height H [--view-center P] [--scale S] [--fit X1,Y1,X2,Y2] [--lock] [--freeze-layers L1,L2] [--allow-overlap] [--file FILE] [--out FILE] [--acad PATH] [--timeout N] [--apply] [--confirm]` (Ring 1C)
Creates a model viewport on layout NAME (or updates --handle H) centred at --center (paper mm) with --width/--height, showing model point --view-center at --scale (paper units per model unit, 0.02 = 1:50), optional --lock and…
cad xref-manage --action attach|overlay|reload|unload|detach|bind [--path FILE] [--name NAME] [--at P] [--absolute] [--layer L] [--layout NAME] [--file FILE] [--out FILE] [--acad PATH] [--timeout N] [--apply] [--confirm]` (Ring 1C)
Attaches or overlays an external DWG reference (inserted at --at, name defaults to the file stem, stored as a relative path unless --absolute), or reloads, unloads, detaches, or binds the XREF --name
cad publish-pdf --out FILE [--layouts A,B] [--paper A0|A1|A2|A3|A4] [--file FILE] [--acad PATH] [--timeout N] [--apply] [--confirm]` (Ring 1C)
Plots paper layouts (all non-empty layouts in tab order, skipping layouts that hold only the paper viewport, or --layouts in the given order even if empty) into ONE multi-page vector PDF with DWG To PDF through Cad.Plugin's publish…

Common questions

Can AutoCAD-CLI set up paper layouts, scaled viewports and multi-page vector PDFs?

Yes. cad layout-manage, cad viewport --fit, cad xref-manage and cad publish-pdf create ISO A0–A4 paper layouts, fit viewports to model windows, attach relative XREFs and publish multi-page vector PDFs (automatically skipping empty layouts).

Run these verbs on your own DWG and DXF drawings

Every verb above returns structured JSON and takes plain command-line flags. AutoCAD-CLI is local and on-premise: zero UAC elevation, zero Autodesk DLLs redistributed, and every write is a dry run until you pass --apply. Fourteen-day free trial with corporate e-mail, no card.

Start a 14-day free trial

Other verb families