run_vba_macro
Execute a VBA macro in SolidWorks by specifying the macro path, module, procedure, and arguments to automate CAD tasks.
Instructions
Execute a VBA macro in SolidWorks
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| macroPath | Yes | Full path to the macro file (.swp or .swb) | |
| moduleName | No | Module name containing the procedure | Module1 |
| procedureName | Yes | Procedure name to execute | |
| arguments | No | Arguments to pass to the macro |