Export STL
export_stlExports the active SolidWorks part or assembly as an STL file for 3D printing, resolving lightweight components while keeping the open document unchanged.
Instructions
Write a STL copy of the active document; it stays open on its own file.
Use it for 3D printing. An assembly is exported whole, with lightweight
components resolved first. SolidWorks picks the format from the file's
extension, so end file_path in .stl. Needs: an open, active part or assembly.
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, plus warning when SolidWorks wrote the file without its STL options
(bodies not merged into one file).
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_stl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | The export. `file_path` (ending in .stl) is required; `format_type` is not needed: the file extension decides the format. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||