Macro shop: Examples and how to's

Hit the ground running by using one of our example macros as the basis for your own project. Not a developer? Then check out our products.

All file types

These macros work with every file, whether it`s a part. assembly or drawing.

Traverse feature tree

TRAVERSE FEATURE TREE


Get all features and print their name and other properties. Also gets sub-features and sub-sub-sub-features. Great for debugging.

Get this macro

SELECTION MANAGER HOWTO


Learn how to work with the SelectionManager, how to get selected objects and how to get specific data from them.

Get this macro

I`LL TAKE YOU TO THE MACRO SHOP


(lollipops not included)

Chances are you're an engineer that's trying to get a paid project done. But you know it can be done faster with a little dose of automation. 

These affordable macros show you how to work with the SOLIDWORKS API. They save you hours of testing, fiddling and browsing the API documentation.

Each macro is 50-100 lines of VBA code, clearly organized, with proper functions, variable names and comments.

Assemblies

Macros for working with assemblies.

Drawings

Create your own magic with drawing automation.

Get unique assembly components

GET UNIQUE ASSEMBLY COMPONENTS


Find unique components in an assembly (and print their path). Optional: include the root assembly, include virtual components.

Get this macro

Get lines from drawing view

HOW TO WORK WITH VIEW LINES


Getting useful data from a drawing view is tricky. We show you how to get the visible lines, curves and their properties.

Get this macro

About our Macro Shop

We created this Macro Shop to teach you the basics of developing software using the SOLIDWORKS API and VBA. We share our knowledge of the API in bite-sized chunks with these affordable, neatly organized macros.

When you purchase this macro you are free to edit it, learn from it and share it within your company. Just don't share the macro on the internet. We are just a small company, so thank you for your understanding.