Export DWG
export_dwgExports the active SolidWorks drawing to a DWG file so AutoCAD users can open it; provide a .dwg file path, and the open document remains unchanged.
Instructions
Export the active document to DWG, like File > Save As with the DWG type.
Use it to hand a drawing to AutoCAD users. SolidWorks picks the format from the
file's extension, so end file_path in .dwg. Needs: an open, active drawing.
Changes: writes the file, creating its folder and replacing a file already
there; the open document is unchanged. Returns: export with file_path and
format.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"input_data": "<input_data>"
},
"name": "export_dwg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | The export. `file_path` (ending in .dwg) is required; `format_type` is not needed: the file extension decides the format. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||