Creating Primitives

The DesignModeler API Primitives provides you with the ability to create different types of primitive bodies: sheet bodies, wire bodies, and solid bodies. For each primitive body type, multiple shape options are available.

 

The primitives variable ExtAPI.DataModel.GeometryBuilder.Primitives is the gateway for designing a new geometric body. The code must be integrated into the callback <ongenerate>.

The script function ongenerate() can be used to create a primitive body. The API provides a variety of queries that allow you to specify properties such as body type, dimensions, shape, point coordinates, and material.