Run AutoCAD Command
system_run_commandExecute AutoCAD commands directly via COM backend to automate drawing tasks and entity modification.
Instructions
Execute an AutoCAD command string directly (COM backend only).
Append \n for Enter. Example: '_LINE 0,0 100,0 \n'.
IMPORTANT: commands that finish at an option menu (e.g. -LINETYPE, -LAYER, -STYLE return to '[?/Create/Load/Set]:' after their action) need an EXTRA blank line or 'X\n' to exit, otherwise AutoCAD stays at a prompt and the next COM call will deadlock. Example: '-LINETYPE _LOAD CENTER acad.lin\n\n'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | AutoCAD command string (e.g. '_ZOOM E', '_REGEN', '_EXPLODE') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||