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. For example, you might create a DFD Diagram Profile that defines a DFD diagram as an extension of the built-in Analysis diagram, as shown:

Create extended diagram types

Step

Action

See also

1

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

This Profile automatically contains one child Class diagram. Depending on how many new diagram types you intend to create, you can define:

One diagram type on one child diagram

Several diagram types on one diagram, or

Several diagram types grouped on several diagrams

In the third case, create any further child Class diagrams you need. The diagram names do not have to reflect the technology name.

Drag an Extension connector from the Stereotype element to the Metaclass element.

5

Click on the Diagram_xxxx Metaclass element, press F9 and create any or all of these attributes, to set properties of the custom diagram type:

alias: string = Type (where Type will appear before the word 'Diagram' on the diagram title bar; for example, 'Block Diagram')

diagramID: string = abc (where abc is the diagram type that will appear 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 of this type is opened)

toolboxPage: string = list of status values in the form "PageName=1;" (where PageName is the name of the stereotype element that extends ToolboxPage; if this string is not empty, all toolbox pages with the value "1" will be expanded and all other toolbox pages will be collapsed)

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)

Depending on what Profile Package organization you adopted at step 1, and whether you need any further Stereotype-Metaclass element pairs, repeat steps 2 - 5 on this diagram or on another child diagram.

7

Save the diagram(s) as a Diagram Profile, using the method most appropriate to the Profile Package organization you have set up.