Export Tools¶
Convert SolidWorks models to industry-standard interchange and manufacturing formats: STEP, IGES, STL, PDF, DWG, and raster images. To export many files, call the export tool once per file.
Prerequisite: An active document or a valid file path to an existing model.
Total tools in this category: 6
export_step¶
Write a STEP copy of the active document; it stays open on its own file.
Prerequisite: Active or specified model document
Parameters:
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
file_path |
str |
✅ | Full path for the exported file | |
format_type |
str? |
— | null |
Not needed: the file extension sets the format; defaults to the tool's own format |
Sample call:
export_iges¶
Write a IGES copy of the active document; it stays open on its own file.
Prerequisite: Active or specified model document
Parameters:
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
file_path |
str |
✅ | Full path for the exported file | |
format_type |
str? |
— | null |
Not needed: the file extension sets the format; defaults to the tool's own format |
Sample call:
export_stl¶
Write a STL copy of the active document; it stays open on its own file.
Prerequisite: Active or specified model document
Parameters:
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
file_path |
str |
✅ | Full path for the exported file | |
format_type |
str? |
— | null |
Not needed: the file extension sets the format; defaults to the tool's own format |
Sample call:
export_pdf¶
Write a PDF copy of the active document; it stays open on its own file.
Prerequisite: Active or specified drawing document
Parameters:
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
file_path |
str |
✅ | Full path for the exported file | |
format_type |
str? |
— | null |
Not needed: the file extension sets the format; defaults to the tool's own format |
Sample call:
export_dwg¶
Write a DWG copy of the active document; it stays open on its own file.
Prerequisite: Active or specified drawing document
Parameters:
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
file_path |
str |
✅ | Full path for the exported file | |
format_type |
str? |
— | null |
Not needed: the file extension sets the format; defaults to the tool's own format |
Sample call:
export_image¶
Save a picture of the active model in a standard view, as PNG or JPG, at a chosen size.
Prerequisite: Active document
Parameters:
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
file_path |
str? |
— | None |
Full path for the exported image |
output_path |
str? |
— | None |
Alternative output path |
model_path |
str? |
— | None |
Path to the model file |
format_type |
str |
— | jpg |
Image format (jpg, png, bmp, tiff) |
format |
str? |
— | None |
Alternative format field |
image_format |
str? |
— | None |
Image format alias |
width |
int |
— | 1920 |
Image width in pixels |
height |
int |
— | 1080 |
Image height in pixels |
resolution |
str? |
— | None |
Resolution alias |
view_orientation |
str |
— | isometric |
View orientation (front, top, right, isometric, current) |
orientation |
str? |
— | None |
Alternative orientation field |
Sample call: