autocad_new_document
Create a new empty drawing and set it as the active document. Specify units and an optional file path to save it immediately.
Instructions
Create a new, empty drawing and make it the active document.
Discards any in-memory (unsaved) drawing held by the ezdxf backend. The default freestanding backend starts with one empty drawing ready to use.
Args: params (NewDocumentInput): - path (Optional[str]): '.dxf' (ezdxf) or '.dwg' (COM) file to write immediately; omit to keep the drawing unsaved. - units (DrawingUnits): 'in' | 'ft' | 'mm' | 'cm' | 'm' (default 'mm').
Returns: str: JSON {"status", "backend", "units", ...}; "path" appears when saved.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |