SysML, UAF, UML, and UPDM Profiles > UPDM profiles > Working with products > Setting up default view options and compartments for new product diagrams (UPDM)
  
Setting up default view options and compartments for new product diagrams (UPDM)
You can define default view options and compartments for new product diagrams by applying the «DiagramDefault» stereotype to a product that defines the default view options and compartments you want to use.
For example, If we create an SV-4 Functionality Hierarchy product named Abstract SV-4 Functionality Hierarchy, set up its default view options and compartments through the Default View Options (Profile) command, and then apply the «DiagramDefault» stereotype to that product; next time we create an SV-4 Functionality Hierarchy in the model, the default view options and compartments of that product will be copied from the Abstract SV-4 Functionality Hierarchy product.
There are two approaches you can take:
After defining default view options and compartments for a product diagram, you can apply the «DiagramDefault» stereotype to that product so that the default view options and compartments you set up are used for new products of the same type.
You can create abstract products whose only purpose is to define the default view options and compartments for new products of that type.
If you want to create an abstract product that uses the default view options and compartments that have been defined for a product in the model, you can clone that product, remove all the symbols from the clone's diagram, and apply the «DiagramDefault» stereotype to that clone.
To use an existing product diagram to define default view options and compartments for new product diagrams:
1. Locate the product that you want to use to set up the default view options and compartments of new products of the same type.
2. Right-click the product, point to Links > Stereotypes, and then click DiagramDefault.
To create an abstract product diagram to define default view options and compartments for new product diagrams:
1. Create a product of the appropriate type.
You may want to group all the abstract products in the same Architectural Description.
2. Right-click the product you created, and then click Open.
3. Right-click the background of the diagram, and then click Default View Options (Profile).
Modeler opens the Diagram/Default View Options dialog.
4. For each symbol type you want to set up:
a. In the left pane, select the symbol you want to set up.
b. On the Options tab, set up the view options for the symbol as required.
c. On the Compartments tab, select the check boxes associated with the compartments you want to show for the symbol.
To find products that define default view options and compartments:
1. From the Dictionary pane, expand the UML folder, expand the Stereotypes folder, and then locate the «DiagramDefault» stereotype.
2. Right-click the «DiagramDefault» stereotype, point to Report, and then click Usage.
3. Products that are stereotyped by the «DiagramDefault» stereotype (those products that define default view options and compartments) are listed in the Results pane.