Create Custom Diagram Profiles

When you develop an MDG Technology, it is possible to create extended diagram types and include them in your MDG Technology as custom diagram profiles.

Create extended diagram types



See also


Create a profile with the same name as the MDG Technology in which it is to be included; for example, SysML.

Check the Notes in the Defining Child Diagram Types topic.


Defining Child Diagram Types


Create a stereotype Class element that is named as the custom diagram, for example, BlockDefinition.




Create a Class element and name it as one of the Built-In Diagram Types prefixed with Diagram_.

For example Diagram_Logical for Class diagrams or Diagram_Use Case for Use Case diagrams.


Built-In Diagram Types


Give the Diagram_x Class the metaclass stereotype and draw an extends connector from the stereotype to the metaclass.




In the Notes field, give the stereotype Class a brief description of what the diagram is used for. This description displays in the bottom right-hand corner of the New Diagram dialog.




Give the Diagram_x Class any of the following attributes as required:

alias: string = Type (where Type appears before the word 'Diagram' on the diagram title bar)
diagramID: string = abc (where abc is the diagram type that appears in the diagram frame label)
toolbox: string = ToolboxName (where ToolboxName is the name of the toolbox profile for the toolbox that opens automatically each time a diagram is opened)
frameString: string = FrameFormatString (where FrameFormatString is a string containing substitution macros for defining the frame title, with or without additional delimiters such as (   ); macros that can be used are:
swimlanes: string = Lanes=2;Orientation=Horizontal;Lane1=Title1;Lane2=Title2; (where Lanes can be any value, but the number of Lane<n> values must equal the value of Lanes; Orientation can be omitted, in which case the swimlanes default to vertical)
StyleEx: string = one or more of a range of values; see the Attribute Values - StyleEx & pdata topic
pdata: string = one or more of a range of values; see the Attribute Values - StyleEx & pdata topic







Diagram Frame














Attribute Values - StyleEx & pdata


Save the diagram as a profile.


Save Profile Options


Add the diagram profile to the .MTS file used in the MDG Technology.


Add Diagram Types


The following example shows the DFD diagram profile which defines a DFD diagram as an extension of the Enterprise Architect Analysis diagram.