Embed and Auto-Run Macros Using Equations

Blog 17.9.2013 11 Comments

This video summarizes the contents of this post and demonstrates the examples listed below. Ever wanted a macro so tightly integrated with a part or assembly that 1) the macro always ran as long as the model was open, 2) the macro traveled with the model wherever it went? Using a clever, undocumented trick involving…

Read More

Using Microsoft Excel with the SolidWorks API

Blog 3.7.2013 11 Comments

Given the ubiquity of Microsoft Excel in engineering departments worldwide, it is no surprise that our “Using Microsoft Excel with the SolidWorks API” tutorial, available to Premium members, is one of our most popular. While I am not going to cover all of the material presented in that lesson, I do want to provide you…

Read More

How to make your VBA macros x64 compatible

Blog 3.6.2013 1 Comment

In a hurry? Just watch the video above. It covers the most important points. If your scenario isn’t covered in the video, then I probably cover it in this article. Overview SolidWorks 2013 includes VBA 7—the latest version of Microsoft’s Visual Basic for Applications. This is great news for several reasons, the most significant being:…

Read More

Fix “Compile error : Can’t find project or library”

Blog 16.4.2013 1 Comment

You’ve written your first “serious” SolidWorks API macro. You’re ready to share with your co-workers. You fire up your email, attach the macro, and click Send. Expecting an avalanche of compliments, you instead get several responses from your co-workers telling you that the macro doesn’t run. “Doesn’t run?! How can that be? It runs fine…

Read More

SolidWorks World 2013 : API Presentations

Blog 16.1.2013 No Comments

SolidWorks World 2013, hosted at Disney World in Orlando, is right around the corner. This year in particular looks like a great year for SolidWorks API learners and enthusiasts. If you’re attending, below is a list I’ve compiled of all presentations related to the SolidWorks API. If you have the opportunity, definitely join me on…

Read More

How To Copy, Clean, & Use API Help Examples

Blog 17.12.2012 2 Comments

I received a great question from one of my newer customers the other day: “Why can’t I ever seem to get an API Help example to work right after copying and pasting it into the Visual Basic Editor?” The answer, simply, is that the text is rarely transferred over perfectly. As demonstrated in the tutorial…

Read More

Video: Write A Powerful Macro From Scratch

Blog 16.11.2012 1 Comment

The time has come for another free video tutorial! In this tutorial, novice SolidWorks API programmers learn just how easy it is to create a powerful macro from scratch in under a half hour. In this particular example, we write a macro that deletes all of the balloons attached to Toolbox parts in a selected…

Read More

What’s New in the SolidWorks 2013 API

Blog 25.9.2012 4 Comments

Unless you’re a die-hard SolidWorks enthusiast that gobbles up the first beta release, chances are you haven’t seen SolidWorks 2013 or are just beginning to explore your freshly downloaded pre-release copy. As with any new releases, SolidWorks 2013 contains some great new “Top Enhancements” to increase design productivity. If you haven’t already, I’d encourage you…

Read More

Interview With API Expert Jeff Sweeney

Blog 12.9.2012 No Comments

How do long-time SolidWorks API experts use their skills within the engineering industry? In an effort to answer that question, I am pleased to introduce Jeff Sweeney of 3DVision Technologies, a Great Lakes region SolidWorks reseller, where he proudly wears the title “Engineering Data Specialist”. Though much of his work involves Enterprise PDM, he has…

Read More

CADSharp.com API Programming Contest Winners

Blog 24.8.2012 No Comments

CADSharp.com’s first-ever SolidWorks API programming contest has come to a close. Some of the finest API programmers out there stepped up to the challenge described in our last post: Write a macro in as few lines as possible that discovers and displays a single message box listing the children of all part components in the…

Read More