pack_and_go_assembly
Copies a SolidWorks assembly and all referenced parts into a target folder, rewriting component paths so the copied assembly opens independently of original locations.
Instructions
Copy a SolidWorks assembly and all its referenced parts to a self-contained folder.
Enumerates every component referenced by the active assembly, copies the
assembly and each part into target_dir, then rewrites the stored
component paths inside the copied assembly so it opens without any
dependency on the original file locations — equivalent to the SolidWorks
GUI Pack-and-Go operation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | No | The input data value. Defaults to None. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||