General InformationThis opening ID is invoked while generating the protection color filling. The table below provides you with information related to the definition of the Opening ID.
Input ObjectsInput objects must be of the following types:
Context Object Parameters
SampleThe following sample describes computation of filling color in protection.
let RColor(Integer)
let GColor(Integer)
let BColor(Integer)
let OColor(Integer)
let ProtLength(LENGTH)
RColor=255
GColor=255
BColor=0
OColor=255
ProtLength = ThisObject.Elec_Length
if(ProtLength > 50.0mm)
{
RColor=255
GColor=0
BColor=0
OColor=255
}
else
{
RColor=0
GColor=0
BColor=255
OColor=255
}
Parameters.SetAttributeInteger("RedColorValue", RColor)
Parameters.SetAttributeInteger("GreenColorValue", GColor)
Parameters.SetAttributeInteger("BlueColorValue", BColor)
Parameters.SetAttributeInteger("OpacityValue", OColor)
| |||||||||||||||||||||||||||||||||