Assembly Navigation macro

SOLIDWORKS Macro: Open Associated Drawing

Opens the likely drawing for the active model or selected assembly component by checking same-folder and configured search paths.

PartAssemblyDrawingOpened drawingBeginner

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

  1. Test on copied SOLIDWORKS files first.
  2. Download and import OpenAssociatedDrawing.bas into a SOLIDWORKS VBA macro project.
  3. Open the required document type: Part, Assembly, Drawing.
  4. Run main from the macro editor or assign it to a toolbar button.
  5. 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.

When macros become a workflow

Use Solidise for indexed folders, BOM visibility, where-used search and repeatable batch export.

Use this macro for a focused task. Use Solidise when you need repeatable export, BOM review, previews or where-used context across many files.

Visit Solidise

Related macros

Keep automating this workflow

Assembly Navigation Intermediate

Open parent assembly

Searches a selected folder for assemblies that reference the active model and opens the first candidate.

PartAssemblyOpened assembly
Download .bas source