SelectObjectOfType function (automation interface)
Syntax:
SelectObjectOfType ("<type>", TRUE¦FALSE)
Where:
• <type> is a string that specifies the type of item or diagram for which the Select Object dialog is opened, as named from the Dictionary object.
• TRUE specifies that a New button appears on the Select Object dialog.
• FALSE specifies that the Select Object dialog does not include a New button.
This function opens the Select Object dialog in the context of the specified item or diagram type.
The return value from SelectObjectOfType function will either be the id of the selected item, the name of the new item that was entered in the text box on the dialog or it will be empty. Note that the return value can be empty because New was clicked with no name specified or because Cancel was clicked.
Note use UML Signal or UML Interface as the <type> to select a Signal or Interface.
Examples
This example opens the Select Object dialog in the context of Actors (no New button):