Save As Template
drawing_template_saveSave the current AutoCAD drawing as a reusable template (.dwt live, .dxf headless), optionally embedding a description in DWT summary comments for consistent new drawings.
Instructions
AutoCAD's SAVEAS → Drawing Template, on both engines.
Live AutoCAD writes a real .dwt (SaveAs(path, ac2018_Template)) and
puts description into the template's summary Comments; the active
document is rebound to the new file, as SAVEAS does. Headlessly a .dxf
template is written — drawing_new(template=<path>) opens it — and a
.dwt request is refused with capability dwt_write (the message names
the DXF route and the COM route); a description is reported
description_written: false because DXF has nowhere to keep it. Any other
suffix, and any path outside the allowed directories, is refused before
a byte is written.
Pack: core · lean: no (drawing_save_as is not lean either).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Template name for the report (default: the file stem). | |
| path | Yes | Destination .dwt (live AutoCAD) or .dxf (either engine). | |
| description | No | Template description → DWT summary Comments on the live engine. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||