Chapter 4 Models
A workspace contains all the information you need to perform a modeling task with PowerDesigner. It allows you to save your modeling environment in a file with a hierarchy of folders and models. During a work session, every change in the folder or models hierarchy is saved locally in the workspace.
You can create several workspace files on your machine, but you can only work in one workspace at a time. Workspaces are saved in files with an .sws extension. They do not have property sheets
You can create the following new items in a workspace by right-clicking the workspace in the Browser and select New→item:
In addition, you can add existing items (including external files, such as text files or MS Word files, and other PowerDesigner workspaces) to a workspace by right-clicking the workspace in the Browser, selecting Add, browsing to the item, and clicking OK. When you have external files referenced in a workspace, you can open with a double-click.
A PowerDesigner model is the basic work unit, and may contain multiple packages and diagrams. You can use folders in your workspace to organize your models.
Creating a project
You can have a convenient environment for working with multiple interconnected models and other files by creating a project. For information, see the Projects and Framework Matrices chapter.
To modify the filename of closed models, multi-model reports, or any document type (workspaces or external files) you can right-click the item in the Browser and selecting Properties, the Document Properties dialog box allows you to directly modify the item filename.
Generated models and workspace
It is highly recommended to keep original models and their corresponding generated models in the same workspace.
By default, PowerDesigner opens with a workspace. Whether you want to model data in a CDM or generate a multi-model report, there will always be a workspace open in the PowerDesigner window.
To create a new workspace, you have to close the current workspace and a new workspace will be automatically created.
To create a new workspace:
When you open an existing workspace, the hierarchy of folders and links to model and report files appear in the Browser. The models linked to the workspace are not open by default.
To open a workspace:
We recommend that you save your workspace whenever you modify its structure by the creation, addition, modification or deletion of a model, report, or folder. Saving a workspace saves the workspace structure, but not the model or report files it contains. However, you will be prompted to save any new model created in the workspace.
To save a workspace:
To save the workspace under another name:
You can save the workspace and the files it contains.
To save the workspace and its contents:
For more information about saving models, see Opening, saving, closing, and deleting models.
You can change workspace during a work session.
To change workspace:
Deleting a workspace deletes the .sws file, but not the model or report files it contains. If you want to delete a workspace file, you have to use the standard file deletion procedure in Windows Explorer.
To delete a workspace:
Copyright (C) 2008. Sybase Inc. All rights reserved. |