Rule for Alternative Representation Name (Schematic_ComputeAlternativeRepName)

An opening ID is an entry point used to customize business logic. The Schematic_ComputeAlternativeRepName opening ID is used to define the name of the alternative representation to be activated for a given object. The representation of this object will be updated with the selected alternative representation.

Note: For more information about customization by business rules, see Installation and Setup: Customize: Behavior: Data Setup: Customization by Business Rules.

This page discusses:

General Information

This opening ID is invoked when:

  • Placing in view the object.
  • Modifying instance properties of the object placed in a diagram view.

DefinitionDescription
PLM Opening IDSchematic_ComputeAlternativeRepName
Customization intent Execution
Execution contextClient

Input Objects

Input objects must be of the following types:

  • ThisObject: LogicalOccurrence
  • Parameters corresponds to the context object.

Context Object Parameters

Parameter NameTypeRead or WriteComments
ThisObject (input)LogicalOccurrence Read The logical component to be analyzed must be a type or a pertinent derived type from LogicalOccurrence.
AlternativeRepName (output)StringWriteProvides the name of alternative representation to be activated. This value can be decided based on attributes available for ThisObject.
Note: Modifications done on the symbol reference do not update in already placed symbol instance. You need to remove the symbol from the diagram view and to place it again to see the modifications.

Sample

In the following sample, the V_description value is defined as alternative representation name. Any other attribute value can be defined as an alternative representation name.

Let AlternateRep(String)
Let ThisInstance (RFLVPMLogicalInstance)
set ThisInstance = ThisObject.Instance

AlternateRep = Parameters.GetAttributeString("AlternativeRepName")
if (ThisInstance.HasAttribute("V_description") == true )
{
  AlternateRep = ThisInstance.GetAttributeString("V_description")
}
Parameters.SetAttributeString("AlternativeRepName", AlternateRep)

After business rule execution, the alternative representation with the same name as the string returned by the business rule is activated in diagram view.