Working with Diagram Objects in the Playpen

Using Undo and Redo

Power*Architect keeps track of your actions and allows you to undo them at a later time. The 100 most recent actions you have performed are remembered and can be undone in sequence.

If you undo an action accidentally, you can choose to redo the action. However, be careful: If you make a new change after undoing one or more actions, your redo history is lost.

To undo an action, click in the top toolbar. You can also select Edit » Undo or press CTRL+Z.

To redo an action, click in the top toolbar. You can also select Edit » Redo or press CTRL+Y.

Selecting Multiple Objects in the Playpen

To select multiple objects (tables, columns, or relationships) in the playpen, do any of the following:

  • Press CTRL or SHIFT and click the objects.

  • Click a blank area in the playpen, then drag to form a grey box around the objects.

  • Press CTRL+A to select all the objects in the playpen.

To cancel the selection, click a blank area in the playpen.

Deleting Diagram Objects in the Playpen

To delete a diagram object (table, column, or relationship) in the playpen, select one or more objects in the playpen, then click in the side toolbar.

Alternate methods:

  • Right-click an object, then click Delete Selected.

  • Select one or more objects, then press DELETE.

Rearranging Diagram Objects in the Playpen

You can change the layout of your data model diagram by rearranging the tables in the playpen. You can also change where relationship links visually connect to a table in the diagram. (To change the columns mapped by a relationship link, you must modify the relationship. For more information, see the section called “Modifying a Relationship” .)

Notes:

To move a table, select one or more tables, then drag the table(s) to a new location in the playpen.

To move the placement of a relationship link, select a relationship link, then drag either end of the link to a new location on the parent or child table.

Automatically Arranging Tables in the Playpen

You can automatically arrange tables in the playpen. Automatic layout works best when you have a large or medium-sized collection of tables, and may not work as well with a small number of tables.

To automatically arrange tables, select several tables in the playpen, then click in the top toolbar.

Note: If you don't select any tables or select only one table, all of the tables will be arranged.

Straightening Diagram Lines in the Playpen

You can automatically create straight lines for the relationship links in your data model diagram. All relationship links will be changed to horizontal or vertical straight lines, as long as the tables connected by the link are aligned horizontally or vertically. If the tables are not aligned, the relationship link will not be changed.

To straighten the relationship lines, right-click a blank area in the playpen, then click Straighten Lines.

Using the Playpen Zoom Options

You can use the zoom options on the side toolbar to control the magnification level in the playpen. The four zoom buttons, in order from top to bottom, are:

  • Zoom in

  • Zoom out

  • Reset the zoom to the default level

  • Zoom to fit

To use the zoom options on specific objects in the playpen, select the objects before clicking a zoom button. If you don't select any objects in the playpen, the zoom options affect the entire diagram.

Finding and Replacing Playpen Objects

You can search for objects in the playpen. You can then quickly rename the items or select them in the playpen.

  1. Select Edit » Find/Replace, or press CTRL+F. The Find dialog box appears.

  2. Enter your search criteria, then click Search. The Search Results dialog box appears with your results.

  3. To rename an object, select the object and click Rename Selected. You can also select multiple objects if you want to rename all the objects using the same name.

  4. To select an object in the playpen, select the object and click Show in Playpen.

You can also find tables in a model by selecting the table in the Playpen Database in the Database Tree and clicking on 'Zoom to fit' in the Playpen Zoom tools on the right side.

Printing or Exporting a Data Model Diagram

To print the data model diagram currently in the playpen, select File » Print.

To export the data model diagram currently in the playpen:

  1. Select File » Export Playpen to PDF. The Save dialog box appears.

  2. Select the location and filename for the PDF, then click Save.

  3. To hide the Creating PDF dialog box, click Run in Background.