<< Click to Display Table of Contents > 

Client Control Interface Manual > Programming Examples > Create Entity > Rectangle

Rectangle
Previous pageReturn to chapter overviewNext page

Create rectangle entity (ScRectangle 2D)

 

//define the type of the new entity

cci.ScSetStringValue((int)ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlStringValueTypeCreateEntity, "ScRectangle2D");

 

//create the entity of the type defined above, name it "MyEntity", apply pen = 3,

//position its center at(x | y | z) = (0 | 0 | 0) in the coordinate system,

//deactivate the definition of the dimension with dim_x = 0, dim_y = 0

cci.ScCreateEntity("MyEntity", "", 3, 0, 0, 0, 25, 15, 0, "");

Table 401: Create rectangle entity (ScRectangle 2D)