<< Click to Display Table of Contents > Ellipse |
Create ellipse/circle entity (ScEllipse 2D)
|
---|
//define the type of the new entity cci.ScSetStringValue((int)ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlStringValueTypeCreateEntity,"ScEllipse2D");
//define radius in x direction cci.ScSetEntityDoubleData("ScCreateEntity", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlDoubleDataIdEllipse2DRadiusX, 40);
//define radius in x direction cci.ScSetEntityDoubleData("ScCreateEntity", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlDoubleDataIdEllipse2DRadiusY, 35);
//define x center coordinate cci.ScSetEntityDoubleData("ScCreateEntity", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlDoubleDataIdEllipse2DCenterX, -10);
//define y center coordinate cci.ScSetEntityDoubleData("ScCreateEntity", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlDoubleDataIdEllipse2DCenterY, -10);
//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 400: Create ellipse/circle entity (ScEllipse 2D)