For automation interface information about the Command Context property, see
Script (automation interface). For a Stereotype, this property is stored in a Script object that is associated with the Stereotype object through the Owned Menu Script association.
This property specifies in which context the menu command appears for an item to which the Stereotype is applied:
• DictItem — menu command appears when the item is right-clicked in a Modeler pane Property Pages only.
• SymbolOnly — menu command appears when the item is right-clicked on a diagram only.
• Universal — menu command appears when the item is right-clicked anywhere in Modeler.
By default, the Command Context property is set to Universal.
Note that when the Command Context property is set SymbolOnly, the command is available only when a diagram is locked (editable). When the command context is set to Universal, the command is available when a diagram is locked and unlocked, but Modeler will prevent the command from making changes to an unlocked diagram.
This property is set on the following tabs:
• Settings tab of a Script's Property Pages. This property is shown only when the Script Type is Menu Command.
• Menu tab of a Stereotype's Property Pages - this property is set in the Command Context column.
To write scripts you require a good working knowledge of the VBScript language, the Modeler Meta Model and the Modeler Automation Interface. If you run a script that has errors, those errors can corrupt Modeler model data and make Modeler crash.
The following section provides information about the items and diagrams for which Command Context is a property. For more information about an item or diagram, click it.