How to: Add a Diagram (DSL Explorer)
In a domain-specific language definition, the diagram element contains properties that affect how the diagram for the generated designer appears. For example, you can specify the default color for text. You modify the properties of the diagram element in the Properties window. For more information, see Diagram (Domain-Specific Language Designer).
A domain-specific language definition can contain only one diagram element. However, you can delete a diagram element so that you can then add one as described in the following procedure.
To add a diagram element by using DSL Explorer
In DSL Explorer, right-click the Dsl node, and click Add New Diagram.
A diagram element appears under the Diagram Elements swimlane of the diagram.
You can now define the diagram element. For more information, see Modifying Diagram Settings in Domain-Specific Language Explorer.
See Also
Concepts
Defining the Domain-Specific Language in Domain-Specific Language Explorer