Free VBA library
SOLIDWORKS VBA Macro Library
64 free, reviewed SOLIDWORKS macros with full source code and setup steps. Search by task or browse by area.
Drawings
Sheets, dimensions, layers, blocks and formats
Rebuild Referenced Models in All Drawing SheetsReloading Sheet Formats in Drawing DocumentsSet Layer and Draw Line in SolidWorks DrawingAlign All Dimensions AutomaticallyProgrammatically Insert a Block into SolidWorks DrawingCreate Custom ISO Views (8 Orientations)Toggle Dimension Style: Fraction vs. DecimalApply Custom Color and Width to Drawing EdgesAutomatically Refresh Drawing Sheet Formats in SOLIDWORKS with VBAHow to Quickly Delete Dangling Dimensions in SOLIDWORKS Drawings?How to Automatically Insert a SolidWorks Drawing Watermark Using A Macro?A Simple Macro for All SolidWorks Delete Dangling Dimensions Automated!
Assemblies
Mates, components and assembly tools
Add a Parallel Mate Between Two SelectionsToggle Explode and Collapse of an AssemblyAdd Bounding Boxes to an Assembly and Its PartsEfficient Assembly Navigation: Open and Activate Top-Level AssemblyAutomate Parent Assembly SelectionFeature Driven Component PatternEfficiently Manage Assembly by Hiding All SketchesInstantly Isolate Selected Components in an AssemblyAutomated Mate Toggling and Assembly Constraint TestingThe VBA Macro to Automate Sketch Editing in SOLIDWORKSHow to Open Selected Part Separately from The Assembly in SolidWorks?Automated Cylinder Array GenerationAutomate SOLIDWORKS Bounding Box Creation and Sketch GenerationHow Do I Automate the Convert Entities Tool for Inner Loops OnlyTraverse Assembly Tree Recursively - SOLIDWORKS API
Parts & Features
Sketches, bodies and feature tools
Export & Save
PDF, DXF, STEP, Parasolid and eDrawings
Save Each Drawing Sheet as a Separate PDFSave a Copy as an eDrawings FileExport Named Sketches to DXF FilesRebuild and Save All Drawings in a Directory as PDFBatch Rebuild and Export Drawings to PDFSave Assembly As Part (All Components)Save Assembly as Part (Exterior Components)Export Assembly Components as ParasolidExport Sheet Metal to DXF in SOLIDWORKSSave Drawings as PDF (Toolbar Button Integration)Save Drawing as PDF (Instant Export)Automated Batch Export of Configurations to STEPSOLIDWORKS Macro: Export Part and Assembly to IGES FileHow To Export the Active Document As a STEP File5-Step Guide to Using the Auto-Mate Addition Macro in SolidWorksHow to Print STEP Files in SOLIDWORKS and Automate Export with PDMPublisherHow To Automate Solidworks Export Bom To Excel Workflow with Thumbnails
Properties & Configurations
Custom properties, units, mass and configurations
PDM & PDMPublisher
SOLIDWORKS PDM and PDMPublisher
VBA Tips & Articles
Getting started, binding, passwords and more
How to Use VBA Macros for SOLIDWORKS AutomationA Tetris Game in SolidWorks VBA MacroProtect macros with a password - Valid for Excel and SOLIDWORKSEarly binding vs Late Binding: How to write macros that will always run with no errorsHow To Crack Any SolidWorks Password Protected VBA Macro (With Screenshots)Top reasons to upgrade your VBA macros in 2020
No macros match your search. Ask us to build it.
Need a macro that is not here?
We build custom SOLIDWORKS and PDM automation, from one-off macros to full add-ins.