How to: Add a Compartment Shape Map (DSL Explorer)
In DSL Explorer, you can map shapes to domain classes and domain relationships from the Diagram node. The following procedure demonstrates how to map a compartment shape element, which is located under the Diagram Elements swimlane, and a domain class, which is located under the Classes and Relationships swimlane.
Note
You can also perform mapping by using the Diagram Element Map item in the Toolbox for the Domain-Specific Language Designer. For more information, see How to: Map Elements By Using the Diagram Element Map Tool.
To add a compartment shape map from DSL Explorer
In DSL Explorer, right-click the Diagram node, and click Add New CompartmentShapeMap.
The Pick ShapeMap class and shape dialog box appears.
In the DomainClass list, click the domain class that you want to map.
In the Shape list, click compartment shape that you want to map.
The mapping appears under the Shape Maps node, which is under the Diagram node in DSL Explorer. The mapping is also reflected in the diagram as a mapping line between the domain class and the compartment shape that you specified.
Click the new map, and set its details in the DSL Details window. For more information, see Defining Element Mapping Details.
Note
If the DSL Details window is not visible, click DSL Details on the DSL Designer toolbar.
See Also
Concepts
Compartment Shape (Domain-Specific Language Designer)
Domain Class and Named Domain Class (Domain-Specific Language Designer)