Define Child Diagram Types

Return to Introduction  Previous page  Next page

The _defaultDiagramType attribute is applied to a metaclass element, not a stereotype element. It defines the type of diagram that is created when an element is made composite. This attribute can take as its name any of the inbuilt diagram types of Enterprise Architect (these are listed in the Built-In Diagram Types topic), or if a custom diagram type is wanted then it should be prefixed with the technology name and '::'.

The following examples show a «BusinessProcess»Activity that, when made a composite element, automatically creates a Class diagram (Class diagrams are defined by the keyword Logical) and a «block» stereotype that creates a SysML InternalBlock custom diagram.

StereotypesWithDefaultDiagramType