<< Click to Display Table of Contents > SerialNumber |
Create serial number entity (ScSerialNumber2D)
|
---|
//define the type of the new entity cci.ScSetStringValue((int)ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlStringValueTypeCreateEntity, "ScSerialNumber2D");
//specify the text size; this value will be taken, if dim_x = dim_y = 0 in ScCreateEntity, //otherwise it will be ignored cci.ScSetEntityDoubleData("ScCreateEntity", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlDoubleDataIdTextSize, 9);
//specify the increment of the serial number cci.ScSetEntityLongData("ScCreateEntity", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlLongDataIdEntitySerialIncrValue, 3);
//specify the start value of the serial number cci.ScSetEntityLongData("ScCreateEntity", (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlLongDataId
, 12);
//create the entity of the type defined above, name it "MyEntity", apply pen = 4, position its //center at(x | y | z) = (10 | 50 | 0) in the coordinate system, deactivate the definition //of the dimension with dim_x = 0, dim_y = 0 cci.ScCreateEntity("MyEntity", "", 4, 10, 50, 0, 0, 0, 0, ""); |
Table 399: Create serial number entity (ScSerialNumber2D)