Add a Package

Adding a package to a model is a simple but versatile process. It is possible to add a new package to a Root Package, View, Model Package, lower-level package or element. In the process you can automatically:

Create a child diagram for the package
Open the diagram as soon as it is created, and
Add the package to the version control system that its parent component is under

Access    Project Browser package context menu | Add | Add Package ( Ctrl + W )

Add a package to the model hierarchy



See also


In the Project Browser, right-click on the package or view under which to add a new package, and select the Add | Add Package context menu option.

The New Model Package dialog displays.




In the Name field type the name of the new package.




To immediately create a diagram for the package, select the Automatically add new diagram checkbox.

To immediately open the new diagram when the package has been created, select the Open new diagram checkbox.




If you are adding a package to a parent package that is under version control, the Add to Version Control option displays, with the checkbox selected.

Deselect the checkbox to exclude the new package from version control; otherwise leave it selected.


Version Control


Click on the OK button.

The new package is inserted into the tree at the current location and, if you selected to create a new diagram, the New Diagram dialog displays.

In the Name field, type an appropriate name for the diagram, and then select the diagram category and diagram type. Click on the OK button.


New Diagrams


If you have selected to put the package under version control, the Package Control Options dialog displays.

Set up the version control details for the package, and click on the OK button.


Configure Packages


You can also add a new package element by dragging the Package icon from the Toolbox into a diagram; in this case the package is created under the diagram's owning package, and is created with a default diagram of the same type as that in which the package is created
In a multi-user environment, other users do not see the change until they reload their project

Learn more