How to Protect Your .NET Source Code

Blog 13.2.2017 No Comments

Warning: I am not a software security expert. Please do not use this blog post as the basis for protecting highly sensitive code. This past week I presented twice at SolidWorks World 2017 on SolidWorks API topics. In my first presentation, I demonstrated and discussed the pros and cons between macros, addins, and stand-alone programs…

Read More

Techniques for Obtaining Bounding Boxes

Blog 29.11.2016 No Comments

Bounding boxes are used constantly in engineering for a variety of reasons. Amongst SolidWorks users, I frequently see them used to optimize plant floor layouts, packaging sizes, and stock lengths. In this blog post, I want to cover the pros and cons of the various techniques available in the SolidWorks API for determining them. GetBox…

Read More

What’s New In The SolidWorks 2017 API

Blog 1.10.2016 No Comments

It’s that time of year again, folks. Let’s look over some of the most notable enhancements to the SolidWorks API, as well as some tips for using the API Help most effectively. Create and access selection sets. (ISelectionSet) Traverse the Manager Pane and activate the FeatureManager design tree, PropertyManager, ConfigurationManager, DimXpertManager, DisplayManager, or custom tab….

Read More

What’s New In The SolidWorks 2016 API

Blog 1.11.2015 2 Comments

Another year, another round of SolidWorks API enhancements. Let’s run through the most notable: Get corresponding sketch contours, sketch segments, and annotations for a specific instance of a component in the context of an assembly. Get or set the properties of paragraphs in note annotations. Get or set cross break feature data in sheet metal…

Read More

API Programming Contest #2 Winners!

Blog 6.7.2015 No Comments

This year’s SolidWorks API programming contest, sponsored by CADSharp, brought in five fascinating submissions. This may seem like a low number, but I quite pleased considering the complexity of the contest. If you aren’t familiar with the contest rules, visit here. My intention with the contest is that entrants would use geometry/topology traversal techniques to…

Read More

API Programming Contest #2: Win $100!

Blog 11.6.2015 2 Comments

I am pleased to announce the second SolidWorks API programming contest! (See results of first contest here.) In this edition, we’re going to test your skills involving assemblies. Here’s how to win one of three gift cards or a 3-month premium membership to How To Enter and Win Download the example file…

Read More

What’s New In The SolidWorks 2015 API

Blog 20.10.2014 No Comments

The SolidWorks 2015 API contains quite a few enhancements that I am excited to share with you. Here are some of the most significant: Access scenes. Insert a table-driven pattern feature. Get or set the components and transforms for interferences. Specify more document printing options. Create and access local curve- and sketch-driven patterns. Get type…

Read More

Tips for Finding and Organizing Code Snippets

Blog 9.7.2014 9 Comments

If you’re even the least bit serious about SolidWorks API programming, then you need to have a game plan for efficiently doing each of these: Finding code for use in a macro you are currently writing or plan to write Organizing code so it can be easily found and re-used Tips for Finding SolidWorks API…

Read More

Macros vs Add-ins vs Stand-Alones

Blog 28.4.2014 1 Comment

If you’re interested in automating some or all of your company’s workflow on your own or with the help of CADSharp’s automation services, you need to answer this very important question: Is this problem best solved using a macro, add-in, or stand-alone? Answering this question requires us to answer several other questions: What are the…

Read More

Watch Two CADSharp API Presentations for Free!

Blog 12.3.2014 No Comments

The presentations I delivered at SolidWorks World 2014 (“SolidWorks API for Total Beginners” and “Using Microsoft Excel with the SolidWorks API”) are now available for public viewing. Both of these videos contain new material, so even if you’ve watched the tutorials at, check them out because you might pick up something new. Here’s how…

Read More