General InformationThis opening ID is invoked:
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
/* CATRule signature (do not edit) : (ThisObject : #In Piping_Pipe_Inst, Parameters : #In RuleContext) : #Void */
/*-------------------------------------------------------------------------*/
/* Variable Declaration */
/*----------------------------------------------------------------------------*/
Let refPrd(Piping_Pipe_Inst) /* Custo Type */
Let v5AttrList (Feature)
Let v6ApplAttrList (Feature)
Let attrValue(String)
/*-------------------------------------------------------------------------*/
/* RULE BEGIN */
/*-------------------------------------------------------------------------*/
Trace (1, "Invoked Rule_InstanceAttributes.CATRule")
set refPrd = ThisObject
/* Get V5 attributes */
set v5AttrList = Parameters->GetAttributeObject("V5Attributes")
/* Get V6 Application attributes on Rule context*/
set v6ApplAttrList = Parameters->GetAttributeObject("V6ApplAttributes")
if ( refPrd <> NULL)
{
if( v5AttrList <> NULL and v6ApplAttrList <> NULL)
{
Trace (1, "v5AttrList is not null" )
Trace (1, "v6ApplAttrList is not null" )
if (v5AttrList->HasAttribute("NominalSize") == true)
{
v6ApplAttrList->SetAttributeString("V_NominalSize", v5AttrList->GetAttributeString("NominalSize"))
}
}
}
| |||||||||||||||||||||||||||||||||