General InformationThis opening ID is invoked:
This opening ID is used to customize:
The table below provides you with information related to the definition of the Opening ID.
Input ObjectsInput objects must be of the following types:
SampleThe following sample shows the business rule for assigning color and thickness to the reference planes according to their category type.
let RValue(Integer)
let GValue(Integer)
let BValue(Integer)
let ThicknessOfPlane(Integer)
let CategoryName(String)
set CategoryName= Parameters.GetAttributeString("CategoryName")
/* Set RGB color and Thickness of Plane */
if("WatertightFrame" == CategoryName)
{
RValue = 0
GValue = 0
BValue = 255
ThicknessOfPlane = 3
}
else if("FireZoneFrame" == CategoryName)
{
RValue = 255
GValue = 0
BValue = 0
ThicknessOfPlane = 4
}
else if("WebFrame" == CategoryName)
{
RValue = 128
GValue = 0
BValue = 255
ThicknessOfPlane = 2
}
else if("RFGMidShip" == CategoryName)
{
RValue = 255
GValue = 255
BValue = 0
ThicknessOfPlane = 4
}
else if("RFGCentreLine" == CategoryName)
{
RValue = 255
GValue = 128
BValue = 0
ThicknessOfPlane = 4
}
Parameters.SetAttributeInteger("RValue", RValue)
Parameters.SetAttributeInteger("GValue", GValue)
Parameters.SetAttributeInteger("BValue", BValue)
Parameters.SetAttributeInteger("Thickness", ThicknessOfPlane )
| ||||||||||||||