export_models
Export model geometry from a .form file to STL files in an existing directory, as one file per model or a single scene file, with optional canonical placement mode.
Instructions
Write models to STL files in an existing directory (absolute path): one <model_id><filename_postfix>.stl per model, or with single_file one <scene_id><filename_postfix>.stl. Exports the geometry as imported, without supports, hollowing, labels or drain holes; export_mode CANONICAL_MODEL ignores the model's placement. Use it to get a model back out of a .form file. Models imported from STEP or made by PreForm cannot be exported. Overwrites files with the same names. Needs PreFormServer 3.65.0 or later.
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": {
"folder": "<folder>"
},
"name": "export_models"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | Yes | ||
| scene_id | No | Scene id; omit for the default scene | default |
| model_ids | No | Models to export; omit for every model in the scene | |
| export_mode | No | ||
| single_file | No | ||
| filename_postfix | No |