Pack and Go Assembly
pack_and_go_assemblyCopy an assembly and its referenced files into one folder that opens standalone for handover or archiving; warns about unsaved changes and can add a preview.
Instructions
Copy an assembly and every file it uses into one folder that opens on its own.
Use it to hand over or archive an assembly. SolidWorks lists the files the
assembly uses; each is copied under its own name, as saved on disk, so save
first: a warning names any open file whose unsaved changes the copy doesn't
have. The copy opens with its own parts, since SolidWorks looks in the
assembly's folder first. It fails, copying nothing, when a file is missing,
two files share a name, or target_dir holds the originals. It refuses a
folder that already has files unless overwrite is on, and then replaces only
the files it copies. It never closes or changes a document. It can add an
isometric PNG preview. Needs: the .sldasm on disk. Changes: writes the copies
into target_dir, creating it if needed. Returns: source_assembly,
target_dir, copied_files, source_files, unsaved_changes and, with a
preview, preview_image.
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": "pack_and_go_assembly"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | The copy. `source_path` (a .sldasm) and `target_dir` are required; `export_preview` and `overwrite` are off. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||