Skip to main content

Code examples of creating geometrical primitives using SOLIDWORKS modeler API

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.