Automating mates in assemblies using SOLIDWORKS API

Edit ArticleEdit Article
Comments

Mating assembly components via API
Mating assembly components via API

Assembly components can be mated programmatically via IAssemblyDoc::AddMate3 SOLIDWORKS API method (or newer versions of this method).

It is required to mark the selected objects with different marks for the different mate types. Please refer the SOLIDWORKS API help documentation for the values of marks for a specific mate or use SOLIDWORKS macro recorder to capture the correct mark.

Notifications

All articles and code at CodeStack are now open-source and hosted on GitHub. If you want to contribute by modifying existing articles and code snippets, submitting new ones, reporting errors and bugs etc. please follow this blog post for more information. We appreciate any contribution.


Product of Xarial Product of Xarial