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 API Programming Contest Winners

Blog 24.8.2012 No Comments’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

API Programming Contest: Win A $100 Amazon Gift Card

Blog 9.8.2012 No Comments

Think you’re a crack API programmer? We’ll find out! is excited to announce its first SolidWorks API programming contest. Here’s how to enter and win one of three gift cards from Amazon or a 2-month membership to Download the example file set here and open “CADSharp_contest.SLDASM”. Write a macro in as few lines…

Read More

RunCommand: The Swiss-Army Knife of the API

Blog 7.8.2012 No Comments

ISldWorks::RunCommand is probably the most powerful call in the entire SolidWorks API. Using this single, easy-to-use API call you can execute over 3,000 individual SolidWorks commands. Need to copy and paste an object? ISldWorks::RunCommand. Need to bring up a feature’s PropertyManager page? ISldWorks::RunCommand. Need to hide the FeatureManager tree? ISldWorks::RunCommand. That’s right—many actions that seemingly…

Read More

Password-Protect VBA Macros & Other VB Editor Tricks

Blog 6.8.2012 No Comments

The lowly Visual Basic Editor is sometimes looked down upon in comparison to the feature-robust design-environment available with .NET macros and add-ins. Its true, the VB Editor is rather lowly in comparison. When it comes to churning out macros at break-neck speed, however, VBA macros can’t be beat. Since most of you create VBA macros…

Read More

Schedule Macros Using the Task Scheduler

Blog 4.7.2012 No Comments

Have a macro that you’d like to run on all models in a directory while out of the office? Enter the Task Scheduler. Located in the SolidWorks Tools directory in your Start Menu, this program allows you to schedule batch operation tasks like updating the versions of your files, converting your models to DXF, updating…

Read More

7 Ways To Run A Macro Without the Run Button

Blog 5.6.2012 3 Comments

How do you run your macros right now? Tools–>Macro–>Run? By clicking Run on the macro toolbar? If macros are even a small part of your workflow, you can do much better. In this post, I want to increase your versatility by showing you four ways you can run a macro without having to use the…

Read More