Customization > Extensibility Through Profiles, Stereotypes, Tag Definitions and Scripts > Extensibility through stereotype scripts and script items > Working with profile diagrams > Creating a stereotype on a profile diagram
  
Creating a stereotype on a profile diagram
This topic provides information for creating a Stereotype on a Profile Diagram. For other ways of creating a Stereotype, see:
Creating a stereotype to allow items to appear on any diagram type.
Creating a stereotype to apply compartments.
Creating a stereotype to apply symbol font, colors, node style and flow style.
Creating a stereotype to extend linking capabilities.
Creating a stereotype to extend model item properties.
To create a stereotype on a profile diagram:
1. On the Profile Diagram toolbar, click the Stereotype button.
2. On the Profile Diagram, click in free space or within a Package:
If you click in free space, the Stereotype is created as a child of the Package that owns the Profile Diagram.
If you click within a Package, the Stereotype is created as a child of that Package.
3. Type the name of the Stereotype, and then press the Enter key.
4. Select valid model item types for the Stereotype (the Stereotype can be applied only to items whose type is valid). For each model item type you want to define as valid:
a. On the Profile Diagram toolbar, click the Meta Class button.
b. Select the Meta Class you want to add, click OK, and then on the diagram click in free space.
c. On the Profile Diagram toolbar, click the Extension button.
d. On the diagram, click the Stereotype you created and then click the Meta Class item (Model Item Type) that you want to define as valid.
5. Define the properties of the Stereotype through its Property Pages.
6. Create any Tag Definitions that are to be applied by the Stereotypes. See Creating a tag definition on a profile diagram.
* 
A Tag Definition can be used by many Stereotypes, but it can have only one value for a model item. If a Tag Definition is applied to a model item through more than one Stereotype, it will have the same value in each case.
You can view the relationships between Stereotypes and Tag Definitions in the following ways:
The Items tab of a Stereotype's Property Pages lists its linked Tag Definitions.
The Items tab of a Tag Definition's Property Pages lists its linked Stereotypes.
The Miscellaneous folder in the Relationships pane shows the Stereotype and Tag Definition structure.