General InformationThis opening ID is invoked during the documentation process in Electrical Manufacturing Preparation application to retrieve the uniform protection thickness and layer thickness factor for protection. This business rule is triggered only once before starting the flattening of the harness data (which happens before generating the drawing). You are expected to provide output in the form of a real (double value). The values retrieved from the business rule for the uniform protection thickness and protection layer thickness factor are applied across flattened data and the manufacturing drawing. 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 how to project the uniform protection thickness rule:
let iListOfInputProtections(List)
let ListOfProtectionsInnerDiameter(List)
let ListItemProtection(InternalProtection)
let UniformProtectionThickness(REAL)
let ProtectionLayerThicknessFactor(REAL)
set iListOfInputProtections = Parameters.GetAttributeObject("ListOfProtections")
set lsize = iListOfInputProtections.Size()
set index = 1
for index while index <= lsize
{
ListItemProtection = iListOfInputProtections.GetItem(index)
if(NULL<> ListItemProtection)
{
ListOfProtectionsInnerDiameter.Append(ListItemProtection.Elec_Inner_Diameter)
}
}
Parameters.SetAttributeReal("UniformProtectionThickness", "20")
Parameters.SetAttributeReal("ProtectionLayerThicknessFactor", "2")
| |||||||||||||||||||||||||||||