Code examples of creating geometrical primitives using SOLIDWORKS modeler API

Edit ArticleEdit Article

Collection of code examples for creating geometric primitives (e.g. box, cylinder, plane, tor, etc.) using SOLIDWORKS API.

Explore the methods of IModeler SOLIDWORKS API interface for methods of creating the geometrical objects.

Use IPartDoc::CreateFeatureFromBody3 SOLIDWORKS API method to create a permanent body from the temporary body.


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