Introduction
Usage : Involved when a symbol representation of a component is placed in a diagram view. It Retrieves the name of a symbol representation of a logical component and adds it as an attribute in the component properties.
Datasetup Resource Set :
- Diagram Resource
Datasetup Resource : SchematicCallback_SymbolOrRouteModified
Rule Example 1
Description
Retrieve the name of the symbol representation and add it to the existing Instance Description attribute value
Rule
//ThisObject --> LogicalOccurence let sName(string) set sName = Parameters.GetAttributeString("Representation_Name") let LogInst(RFLVPMLogicalInstance) set LogInst = ThisObject.Instance let ExistingDesc(string) set ExistingDesc = LogInst.V_description let AddedDesc(string) if(NULL<>LogInst) { set AddedDesc = sName.Extract(0, sName.Search(".")) LogInst.V_description = ExistingDesc + " - " + AddedDesc } Notify(" SetSymbolName = #", sName ) Notify("----------------------------------------------------------------------------")
3DXML