Welcome

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.

Notifications

Join session by SOLIDWORKS and PDM API expert Artem Taturevych at 3DEXPERIENCE World 2026 on Wednesday, Feb 4 at 08:30 AM CST to explore 10 essential macros for automating drawings, assemblies, custom properties, and more


Product of Xarial Product of Xarial