What this macro does
Opens the likely drawing for the active model or selected assembly component by checking same-folder and configured search paths.
Best for
- Daily navigation
- Assembly review
- Fast drawing lookup
Inputs
- Active model or selected component
Outputs
Opened drawing
Filename rules
Looks for matching .SLDDRW files using the model base filename.
How to use
- Test on copied SOLIDWORKS files first.
- Download and import
OpenAssociatedDrawing.basinto a SOLIDWORKS VBA macro project. - Open the required document type: Part, Assembly, Drawing.
- Run
mainfrom the macro editor or assign it to a toolbar button. - Review all generated files before using them for production release.
Limitations
- Cannot guarantee matches when drawings use unrelated names.
- Additional search folders can be added in the macro constants.