SOLIDWORKS Macro

Creating Macro Buttons in SOLIDWORKS

SOLIDWORKS Create Macro Button

In this tech tip, learn how to create and add SOLIDWORKS Macro Buttons to your toolbars along with creating a new Macro from scratch. If you would like to learn how to record a Macro and assign shortcuts then read our tech tip: Recording Custom…

Read More...

What’s the Difference between SOLIDWORKS Macros, Add-Ins and Executables?

SOLIDWORKS Routing Add-in

When working within SOLIDWORKS, there are a lot of processes that can become repetitive and take quite a long time to complete and most of us see if there’s a way to streamline the process and reduce time. Lucky for us, there are three ways…

Read More...

SOLIDWORKS Macro to create Drawings for All Configurations with Updated BOM

Create SOLIDWORKS drawings macro

Have you ever had a part with tens or hundreds or thousands of configurations? And you’re responsible for creating a drawing for EACH of those configurations with a correct BOM? Well fear no more! We’ve got a SOLIDWORKS Macro for you in which all you have…

Read More...

Why is my SOLIDWORKS Macro not Running?

SOLIDWORKS Macro Not Running

Have you ever ran into a situation where your SOLIDWORKS Macro is not running? Or it looks like it runs but nothing happens and it doesn’t give you an error message? The most common reason for this is that you’ve recently performed an upgrade on…

Read More...

Microsoft Visual Basic: Run-time Error ’91’

Ever encountered the Microsoft Visual Basic error “Run-time Error ’91’: Object variable or With block variable not set” when opening a SOLIDWORKS file? Or if you’re creating a new SOLIDWORKS Macro, and while running it you see this pop up? Lucky for you, this is…

Read More...

SOLIDWORKS VBA Macro Code to Save Drawing as a PDF

save solidworks drawing to pdf

Usually when we want to speed up process tasks in SOLIDWORKS, we tend to search for Macros that can do the task for us so we can decrease our process time. A lot of these Macros are published online by various users, but be mindful…

Read More...

Recording Macros in SOLIDWORKS Simulation 2017

You now have the power of recording your own macros for studies in SOLIDWORKS Simulation 2017.  The Record button in the Macro Toolbar (or under Tools > Macro > Record) makes it quick and easy to generate the macro script automatically by following the steps you…

Read More...

Why Don’t My Macros Work in SOLIDWORKS?

SOLIDWORKS Macros Broken

Starting in SOLIDWORKS 2013, a new version of Microsoft Visual Basic for Applications was introduced.  SOLIDWORKS now uses VBA 7.1 rather than VBA 6.  This new VBA version supports 64-bit systems.  As a result, your old SOLIDWORKS macros broken as they may not compile correctly with…

Read More...

Why SolidWorks Surfacing Users Should Learn the API

SolidWorks provides a lot of power in making selections. But some things are just not possible out of the box. My colleague Alin was browsing the SolidWorks forums and came across this thread. Once the problematic face is deleted the model looked like this:

Read More...