General InformationThis opening ID is invoked when the user confirms the conductor route definition in the Automatic Routing and Manual Routing commands. See Electrical 3D Design User's Guide: Routing Conductors. This business rule is used to check the compatibility of the conductor to be routed and the set of segments to be routed through. The business rule can either:
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 explains how to use an opening ID to validate conductor routing. /* CATRule signature (do not edit) : (ThisObject :
#In Wire, Parameters : #In RuleContext, Validation :
#Out Boolean) : #Void */
let ListOfSeg(LIST)
let NbElem(INTEGER)
let Name(STRING)
let iSearch(INTEGER)
let iSearch2(INTEGER)
let SepCode(String)
set Name = ThisObject.Name
set SepCode = ThisObject.Elec_Sep_Code
if(SepCode == "Error")
{
Validation = false
Parameters.Severity = 2
Parameters.Message = "Routing not allowed by
business rule"
}
else if(SepCode == "DefaultError")
{
Validation = false
Parameters.Severity = 2
}
else if(SepCode == "Warning")
{
Validation = true
Parameters.Severity = 1
Parameters.Message = "Routing allowed with warning"
}
else if(SepCode == "DefaultWarn")
{
Validation = true
Parameters.Severity = 1
}
else
{
Validation = true
Parameters.Severity = 0
Parameters.Message = "Routing Allowed"
} | ||||||||||||||||||||||