export_document
Exports active SolidWorks documents to exchange formats (STEP, STL, IGES, PDF, etc.) and saves them beside the source or in a specified directory without altering the open file.
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. 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| formats | No | ||
| directory | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |