Skip to content

SOLIDWORKS Macro

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...

Imported Bodies Video Series – 3. Repairing an Imported Model (Automatic Selection of Open Edges Using a Macro) [VIDEO]

In the first episode of this series I deleted a faulty face from an imported model, only to re-create it using the planar surface feature in the second episode. I hope you remember how cumbersome it was to select all those unconnected open loops in order to define the boundary of the new planar surface. Fortunately, any repetitive manual work could easily be performed by macros (the equivalent of industrial robots in SolidWorks). It actually took less than 5 minutes for my colleague Adam Bridgman, who is teaching the SolidWorks Visual Basic and the SolidWorks API courses here at Javelin, to write a macro for selecting all the open edges from a part. As you will see in the third video of this series, re-creating a planar surface with a…

Read More...

DriveWorks Tutorial: Specification Flow (5 of 5) – Release Documents [VIDEO]

Sometimes it is important to control who is allowed to see specifications in certain states or control who is allowed to perform certain transitions.  To control who is allowed see a state or transition in a specification we need to edit the originating state:

Read More...

Want to become a SOLIDWORKS Expert?

Take a LIVE Online Training Course from Javelin

Scroll To Top