Chapter 6 Managing Models


Moving a diagram to a package

In some cases, you may want to move a diagram and some or all of the objects it contains into another package (or composite object such as process or activity).

The linking objects that you move with the diagram keep their links in the target package and a shortcut is usually created in the source package. The general rule being that the design of the original diagram must be preserved.

Shortcut creation rules in PowerDesigner also apply to moving objects between packages.

For more information on shortcut creation, see chapter Managing shortcuts.

You can simply drag and drop the diagram from one package to another in the Model Explorer. All objects in the diagram are automatically moved to the target package.

You can use the wizard to control which objects in the diagram are moved to the new package.

Steps To move a diagram to a package using the wizard:

  1. Select View→Diagram→Move to Package.

    or

    Right-click the diagram background window and select Diagram→Move to Package from the contextual menu.

    or

    Right-click the diagram node in the Model Explorer and select Move to Package from the contextual menu.

    In each case, the Move Diagram to Package wizard opens:
  2. Select a target package in which you want to move the current diagram and click Next to open the Selecting Objects to Move page.

    This page lists all the objects in the diagram available to move to the new package. Objects are organized by object type, with a sub-tab for each object type. By default, all the objects are selected.
  3. [optional] Deselect any objects you do not want to move to the new package. Objects deselected here will remain in the original package and be represented in the new package via shortcuts.
  4. Click Finish to move the diagram to the new package.

Note   Last diagram in package
If the last diagram is moved or deleted from a package, a new diagram is automatically created as all packages must contain at least one diagram.

 


Copyright (C) 2007. Sybase Inc. All rights reserved.