Customization > Automation Interface > Functions > For User Interface > Functions for diagrams > SelectSymbol function (automation interface)
  
SelectSymbol function (automation interface)
Syntax:
SelectSymbol("<diagram id>", "<item id>")
Where:
<diagramid> is a string that specifies the id of the diagram.
<itemid> is a string that specifies the id of the item to find.
SelectSymbol selects a symbol on a diagram using the Id properties of the diagram and the dictionary item. The function searches for a symbol of the requested dictionary item on the diagram and returns a Boolean value to indicate success or failure.
Examples
In this example, the SelectSymbol function selects the My Class class on the My Class Diagram class diagram.
Set objDiagrams = ActiveProject.Item("Diagrams")
Set objDiagram = objDiagrams.Item("Class Diagram", "My Class Diagram")
Set objItem = Dictionary.Item("Class", "My Class")
Result = Studio.SelectSymbol(objDiagram("Id"), objItem("Id"))