Export STL
export_stlExports the active SolidWorks part or assembly to an STL file for 3D printing; resolves lightweight components and writes to the specified .stl path.
Instructions
Export the active document to STL, like File > Save As with the STL type.
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 | |||