Macro library

Browse SOLIDWORKS VBA macros.

Each macro includes source, usage notes, limitations and a production-safety reminder.

21 macros

BOM Intermediate

BOM/table to CSV

Finds BOM or general tables in the active drawing or assembly and exports their visible cells to CSV, with optional Excel automation.

DrawingAssemblyCSVXLSX
Download .bas source
Custom Properties Advanced

CSV custom property update

Reads a CSV file containing file paths, configuration names and property values, then updates SOLIDWORKS custom properties.

PartAssemblyDrawingUpdated custom properties
Download .bas source
Assembly Navigation Beginner

Open associated drawing

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

PartAssemblyDrawingOpened drawing
Download .bas source
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
Release Package Advanced

Pack and Go naming

Runs Pack and Go into a selected folder and applies prefix/suffix naming, with a hook for custom-property based names.

PartAssemblyDrawingCopied project set
Download .bas source
Drawing Cleanup Intermediate

Rename sheets/views

Renames drawing sheets and views from referenced model properties such as PartNo and Description.

DrawingRenamed sheets/views
Download .bas source
Custom Properties Intermediate

Title block property sync

Copies key custom properties from the first referenced model into the drawing so title blocks can resolve consistently.

DrawingUpdated drawing properties
Download .bas source