General InformationThis opening ID is invoked when using the Copy Arrangement command. For more information, see Electrical 3D Design: Arranging Segments: Copying Arrangement between Supports . The purpose of this opening ID is to check that Copy Arrangement is allowed on the selected source and target support pair. It can either:
This rule is triggered when target support is selected while using the Copy Arrangement command. 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 illustrates the business rule syntax. /* CATRule signature (do not edit) : (ThisObject : #In Support,
Parameters : #In RuleContext, Validation : #Out Boolean) : #Void */
let SrcSpt(Support)
let TgtSpt(Support)
let SrcName(STRING)
let TgtName(STRING)
let SubType(STRING)
set SrcSpt = Parameters.GetAttributeObject("SourceSupportInstance")
set TgtSpt = Parameters.GetAttributeObject("TargetSupportInstance")
if((NULL == SrcSpt) or (NULL == TgtSpt))
{
Validation = false
Parameters.Severity = 2
Parameters.Message = "Param NULL"
}
else
{
set SrcName = SrcSpt.Name
set TgtName = TgtSpt.Name
}
{
if (SrcName == TgtName)
{
Validation = false
Parameters.Severity = 2
Parameters.Message = "Not allowed"
}
else
{
Validation = true
Parameters.Severity = 1
Parameters.Message = "allowed with warning"
}
| |||||||||||||||||||||||||