Logo

Daniel-Barker.com

A macro is a script that automates repetitive tasks, saving time and improving efficiency. My journey into macro development began with VBA in Excel, and I soon realized I could leverage VBA to create macros in SolidWorks.
With SolidWorks' built-in VBA editor and the ability to record macros, it is easy to develop several useful tools to enhance my workflow.
Below are some of the macros which are relatively robust and 'production' ready.

This is a simple macro written with VBA to automate the STL export process from Solidworks to make the process faster. An STL of the current part is exported to a default folder location.
This was the first macro which I developed and continues to be my most frequently used.

View or download the code and documenation here:

DOWNLOADS

The Quick Capture Macro for Solidworks is written in VBA and is intended as a one-click method for quickly capturing the current view. When the macro runs, an image of the current view is exported as a jpeg and saved to the same directory as the active document.
I use this macro regularly to quickly and easily capture images throughout the design process.

View or download the code and documenation here:

DOWNLOADS