General InformationThis opening ID is invoked every time a symbol is placed in view. This opening ID is used to customize:
Input ObjectsInput objects must be of the following types:
Context Object Parameters
SampleIn the following example, the business rule is set to place and flip the piping logical valve compoent automatically at the (200,200) position in the sheet.
Let ReferenceObject(RFLVPMLogicalReference)
set ReferenceObject = ThisObject
Let Is_AutoPlacement(Boolean)
set Is_AutoPlacement = FALSE
Let Symbol_PositionX(Real)
Let Symbol_PositionY(Real)
Let Symbol_RotationAngle(Real)
let IsSymbolFlip(Boolean)
Let ObjInstance(RFLVPMLogicalInstance)
Let ObjOccurrence(LogicalOccurrence)
Set ObjOccurrence = Parameters.GetAttributeObject ("Object_Occurrence")
set IsSymbolFlip = FALSE
Set ObjInstance = ObjOccurrence.Instance
if(NULL <> ReferenceObject)
{
if(NULL <> ObjInstance)
{
set Is_AutoPlacement = TRUE
set Symbol_PositionX = 200
set Symbol_PositionY = 200
set Symbol_RotationAngle = 0.0
set IsSymbolFlip = TRUE
}
}
Parameters.SetAttributeBoolean ("Is_AutoPlacement", Is_AutoPlacement)
Parameters.SetAttributeReal ("Symbol_PositionX", Symbol_PositionX)
Parameters.SetAttributeReal ("Symbol_PositionY", Symbol_PositionY)
Parameters.SetAttributeReal ("Symbol_RotationAngle", Symbol_RotationAngle)
Parameters.SetAttributeBoolean ("Is_Flip", IsSymbolFlip)
| |||||||||||||||||||||||||||||||||||||||||||||||