Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
36
Добавлен:
16.04.2013
Размер:
3.34 Mб
Скачать

C H A P T E R 4

0DQDJLQJ WKH :RUNVSDFH

About this chapter

This chapter describes the workspace environment in PowerDesigner.

Contents

7RSLF

3DJH

 

 

Defining a workspace

96

 

Using the workspace

97

 

Building a workspace

102

 

Deleting a workspace

104

General Features Guide

 

'HILQLQJ D ZRUNVSDFH

'HILQLQJ D ZRUNVSDFH

A workspace defines the entire set of information you need to perform a modeling task with PowerDesigner.

A workspace is local, it allows you to save a local environment in a file with a hierarchy of folders and models. It is reusable so the folder structure and data location information remains on your disk every time you start a session.

*HQHUDWHG PRGHOV DQG ZRUNVSDFH

It is highly recommended to keep in the same workspace original models and their corresponding generated models.

 

The workspace environment contains:

 

A hierarchy of folders

 

Links to model files

 

Links to multi-model report files

 

Links to external files

 

You can create several workspace files on your machine, but you can only

 

work in one workspace at a time.

Workspace

The workspace is identified by its name, this property is saved locally in a

properties

file with the SWS extension.

 

The workspace does not have a property sheet.

 

PowerDesigner

&KDSWHU 0DQDJLQJ WKH :RUNVSDFH

8VLQJ WKH ZRUNVSDFH

When you start PowerDesigner, you open a default workspace. You can work in this default workspace or open an existing workspace if you want to switch to another work environment to perform different tasks.

During a work session, every change in the folder or models hierarchy is saved locally in the workspace.

&UHDWLQJ D ZRUNVSDFH

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.

ϖ7R FUHDWH D QHZ ZRUNVSDFH

Select FileClose Workspace.

Confirmation boxes prompt you to save the models before closing the current workspace and opening a new work environment.

2SHQLQJ D ZRUNVSDFH

When you open an existing workspace, the hierarchy of folders and links to model and report files appear in the Browser tree view. The models linked to the workspace are not open by default.

ϖ7R RSHQ D ZRUNVSDFH

1Select FileOpen Workspace.

A confirmation message prompts you to save the current workspace.

General Features Guide

 

8VLQJ WKH ZRUNVSDFH

2Click Yes if you want to save the current workspace.

RU

Click No if you don’t want to save the current workspace. A standard file selection dialog box appears.

3Select a file with the SWS extension.

4Click OK.

The new workspace environment appears.

The tree view displays the hierarchy of folders, models, and packages defined in this workspace.

5HQDPLQJ D ZRUNVSDFH

The workspace is identified by its name. You can modify the name of a workspace from the Browser tree view.

ϖ7R UHQDPH D ZRUNVSDFH

Right-click the workspace node in the tree view and select Rename from

the contextual menu.

RU

Select the workspace node and press F2 to edit the name in place.

'HILQLQJ D VWDUWXS RSWLRQ

You can set a general option in order to open by default the previously opened workspace.

ϖ7R GHILQH D VWDUWXS RSWLRQ

1 Select ToolsGeneral Options.

 

PowerDesigner

&KDSWHU 0DQDJLQJ WKH :RUNVSDFH

The General Options dialog box opens with the General category selected.

2Select the Auto-Reload Last Workspace check box in the Browser groupbox.

3Click OK.

&KDQJLQJ ZRUNVSDFH

You can decide to change workspace during a work session. You do not have to exit PowerDesigner to change workspace.

ϖ7R FKDQJH ZRUNVSDFH

1Select FileOpen Workspace.

A confirmation message prompts you to save the current workspace.

2Click Yes if you want to save the current workspace.

RU

Click No if you don’t want to save the current workspace. A standard file selection dialog box appears.

3Select another workspace.

General Features Guide

 

8VLQJ WKH ZRUNVSDFH

4Click OK.

The new workspace environment appears.

6DYLQJ D ZRUNVSDFH

When you save a workspace, you save the global architecture of the work environment, you do not save individual model files.

You should save the workspace whenever you modify the modeling architecture by performing the following actions:

Creation, addition, modification or deletion of a folder

Creation, or detachment of a model

Creation, or detachment of a report

When you save a workspace you do not save the model or report files it contains. However, for any new model created in the workspace a Save As dialog box prompts you to indicate a name and file for the workspace to save the model location.

ϖ7R VDYH D ZRUNVSDFH

Select FileSave Workspace.

For more information on saving models, see chapter Managing Models.

6DYLQJ D ZRUNVSDFH XQGHU DQRWKHU QDPH

You can save an existing workspace under another name.

ϖ7R VDYH WKH ZRUNVSDFH XQGHU DQRWKHU QDPH

1Select FileSave Workspace As.

A standard Save As dialog box appears.

2Type a new name for the workspace and click OK. The new workspace is displayed by default.

6DYLQJ D ZRUNVSDFH DQG LWV FRQWHQWV

You can save the workspace and the files it contains.

 

PowerDesigner

&KDSWHU 0DQDJLQJ WKH :RUNVSDFH

ϖ7R VDYH WKH ZRUNVSDFH DQG LWV FRQWHQWV

Select FileSave All.

The workspace and the model or report files it contains are saved. You are not prompted to save the individual files.

&ORVLQJ D ZRUNVSDFH

When you close a workspace, you close the current work environment with all the related folders, models, and reports.

,I WKH ZRUNVSDFH UHODWHG LWHPV KDYH EHHQ PRGLILHG A confirmation dialog box prompts you to save each item individually, save them all or cancel saving.

,I WKH ZRUNVSDFH UHODWHG LWHPV KDYH QRW EHHQ PRGLILHG The workspace is closed.

ϖ7R FORVH D ZRUNVSDFH

1Select FileClose Workspace.

A confirmation dialog box prompts you to save each item individually, save them all or cancel saving.

2Click a save button.

The current workspace is closed and a new default workspace appears at the root of the Browser.

General Features Guide

 

%XLOGLQJ D ZRUNVSDFH

%XLOGLQJ D ZRUNVSDFH

You build a workspace by adding folders and models to your work environment.

You can either create new items or add existing items in the workspace.

&UHDWLQJ QHZ LWHPV LQ D ZRUNVSDFH

You can create the following new items in a workspace:

Folder

Models, CDM, PDM, OOM, BPM, or FEM

Multi-model reports

ϖ7R FUHDWH D QHZ LWHP LQ D ZRUNVSDFH

1 Right-click the workspace node in the Browser tree view. 2 Select NewLWHP from the workspace contextual menu.

The new item appears in the Browser tree view. If you create a new model, the default diagram window of the new model also appears in the work area.

$GGLQJ LWHPV WR D ZRUNVSDFH

You can add the following items to a workspace:

Models, CDM, PDM, OOM, BPM, or FEM

Multi-model reports

Other workspaces you want the workspace to reference in the current workspace

External files you want the workspace to reference such as MS Word files, or Excel spread sheets

ϖ7R DGG LWHPV WR D ZRUNVSDFH

1 Right-click the workspace node in the Browser tree view. 2 Select Add from the workspace contextual menu.

A standard file selection dialog box appears.

 

PowerDesigner

&KDSWHU 0DQDJLQJ WKH :RUNVSDFH

3Select an item.

4Click OK.

The item appears in the Browser tree view. If you add a model, the model node appears in the Browser tree view, but the model is not opened.

2SHQLQJ H[WHUQDO ILOHV UHIHUHQFHG LQ WKH ZRUNVSDFH

When you have external files referenced in the current workspace, you have to double-click their node in the Browser tree view to open them.

0RGLI\LQJ WKH ILOHQDPH RI FORVHG PRGHOV DQG DQ\ GRFXPHQW W\SHV LQ WKH ZRUNVSDFH

You can easily modify the filename of closed models and closed multi-model reports, as well as any document type (workspaces or external files) in the workspace, by right-clicking the model or document in the Browser tree view and selecting Properties from the contextual menu. You can directly modify the filename document in the Document Properties dialog box that appears.

General Features Guide

 

'HOHWLQJ D ZRUNVSDFH

'HOHWLQJ D ZRUNVSDFH

Deleting a workspace does not affect the folders and models it contains. When you delete a workspace, you only delete the corresponding file existing on your machine, you do not delete any of the model or report files it contains.

If you want to delete a workspace file, you have to use the standard file deletion procedure from the Windows Explorer.

ϖ7R GHOHWH D ZRUVNSDFH

1 Select the workspace file in the Windows Explorer.

2 Right-click the node and select Delete from the contextual menu.

 

PowerDesigner

Соседние файлы в папке PowerDesigner 9