Archive for the ‘Blog’ Category

Upcoming API Training Class In Denver

Blog 23.3.2017 No Comments

CADSharp is offering a four-day live training class on advanced API applications (addins and stand-alones using .NET) in “The Mile High City” on May 2 – May 5, 2017. Here’s what others have said about our classes: Why You Should Attend Highly rated. Last 25 survey respondents averaged 9.4 / 10 for the question, “Were…

Read More

How to Crack A SolidWorks VBA Macro

Blog 16.2.2017 No Comments

Any VBA macro, whether for SolidWorks or an Microsoft Office product, can have be locked using a password. The password is required to view the source code but not run the macro. This creates a neat little safeguard against tampering on the part of curious users, but it is not, in my opinion, a safeguard…

Read More

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 CADSharp.com 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 Amazon.com gift cards or a 3-month premium membership to CADSharp.com. 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