export_document
Export the active SolidWorks document to exchange formats such as STEP, STL, PDF, or DXF, choosing a target directory or using configured defaults while leaving the open document unchanged.
Instructions
Exports the active document to exchange formats, next to the document or in 'directory'. Existing files with the same name are replaced.
formats: e.g. ["step", "stl"]; omit to use the formats set by the user in the configuration (STEP by default). Supported: step, stp, iges, igs, x_t, stl, 3mf, pdf, png, dxf, dwg (pdf, dxf and dwg for drawings). directory: absolute, or relative to the folder of the document; "{format}" is replaced by the format name. Omit to use the configured directory. Created if missing. Files are named after the document. The open document is left untouched.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "export_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| formats | No | ||
| directory | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |