The SOLIDWORKS 2025 API has 458 interfaces.
It’s impossible to know and understand them all. But once you know the basics, you should be able to figure out the rest.
To help you get started, I am writing down everything I know.
I will add links to the posts when I finish them. Follow CAD Booster on LinkedIn or via our newsletter to get notified of new posts.
Microsoft has a great explanation of what an Object Model is:
Developers organize programming objects in a hierarchy, and that hierarchy is called the object model of the application. Word, for example, has a top-level Application object that contains a Document object. The Document object contains Paragraph objects and so on. Object models roughly mirror what you see in the user interface. They are a conceptual map of the application and its capabilities.
The object model is a fancy name for the structure and relations between different object types. In the case of the SOLIDWORKS API, we have a top-level SldWorks object, the application itself. From that object, you get the current model and from the model, you can get features and other properties.
Every object in the SOLIDWORKS API has properties and methods. Together, we call them members.
A property is something that the object has, it does not have to be calculated. A property has a value that you can get and often you can also set it. If you cannot set the property, the documentation will say so.
A method performs an action on an object. This allows you to change the object, to perform an action on it, anything’s possible.
The image below shows the first methods of the SldWorks object, but there are hundreds. A method you will often use is ActivateDoc3, which makes a loaded model the visible, active model.
There are three ways to find the thing you need in the documentation:
Say you have this page about the ISldWorks interface:
This section is pretty useless.
This list may contain useful examples, usually in a couple of different languages. The examples are usually cluttered with lines for opening the right file, but they can be helpful if you are just getting started with a topic.
The most useful section. It contains explanations of all the weird quirks of this object. If you can’t figure something out, go read this section a couple of times.
Every interface except the ISldWorks interface has a list of accessors. The image below shows the first few ways how to get a ModelDoc2 object, there are lots more ways.
It shows you how you can get that object, how to access it. So if you know which interface you need, but don’t know how to get there, check out the list of accessors and work back from there.
Link to the 400+ page PDF with the complete Access Diagram in the object model. The link directly leads you to the correct page.
The image below shows the SldWorks object and the first six objects you get access to from it.
The top link in this list is the most useful. It leads you to the list of members, aka properties and methods. This is the page that I bookmark, not the interface page.
The other links are related interfaces.
Entirely at the bottom, there’s a “Search ‘ISldWorks Interface’ in the SOLIDWORKS Knowledge Base.” section. I have never found this useful because there’s no real knowledge stored in the Knowledge Base.
Subscribe to our newsletter and get our TimeSavers add-in for free.