run_accoreconsole_script
Execute batch AutoLISP or .scr scripts in AutoCAD 2027's headless AcCoreConsole, optionally opening an input DWG and saving the result to a DWG file.
Instructions
Run a batch AutoLISP or .scr script in AutoCAD 2027's headless AcCoreConsole.
Args: script_or_lisp: AutoLISP expressions (if is_lisp=True) or raw AutoCAD .scr script lines (if is_lisp=False). is_lisp: Whether script_or_lisp is AutoLISP code (True) or raw .scr commands (False). input_dwg: Optional input .dwg file path to open in AcCoreConsole. save_as_dwg: Optional output .dwg file path to save after execution. timeout_sec: Maximum execution time in seconds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| is_lisp | No | ||
| input_dwg | No | ||
| save_as_dwg | No | ||
| timeout_sec | No | ||
| script_or_lisp | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |