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

&KDSWHU 0DQDJLQJ 6KRUWFXWV

You can generate a shortcut as:

An object. Shortcut becomes an object in the generated model, thus it is a new object that looses through generation all links that existed in the target model

A shortcut. Shortcut is generated as a shortcut in the generated model, thus it preserves the link to its target model through generation process

For more information on shortcut generation, see section Generating shortcuts.

ϖ7R VHOHFW D W\SH RI JHQHUDWLRQ IRU D VKRUWFXW

1Select ModelShortcuts. The list of shortcuts appears.

2Select a shortcut in the list.

3Click the Generation column and select Shortcut or Object from the dropdown listbox.

The type of generation appears in the Generation column.

4Click OK.

'HOHWLQJ D VKRUWFXW IURP WKH OLVW RI VKRUWFXWV

You can delete a shortcut from the list of shortcuts.

ϖ7R GHOHWH D VKRUWFXW IURP WKH OLVW RI VKRUWFXWV

1Select ModelShortcuts. The list of shortcuts appears.

2Select a shortcut in the list.

3Select the Delete tool.

4Click OK.

General Features Guide

 

:RUNLQJ ZLWK VKRUWFXWV

8VLQJ WKH OLVW RI WDUJHW PRGHOV

You can display a list of all the target models used in the current referencing model or package.

The list of target models lets you:

Consult the list of target models related to the current model and display their name, code and type. This can be the target model of a shortcut, of a replication, or the target model of an intermodel generation

Display the property sheet of the target model and modify the properties of the target model

Check the status of each target model (opened, closed, or unresolved) and open closed target models. It also indicates the path of the file in which the target model is saved

Change the target model

Delete all the shortcuts or replications related to a target model

Unresolved status A target model can have an Unresolved status when it cannot be opened because the file no longer exists or it contains another model for example.

In this case you have to change the target model of the shortcut.

For more information on how to change the target model of a shortcut, see section Changing the target model of a shortcut.

ϖ7R GLVSOD\ WKH OLVW RI WDUJHW PRGHOV

Select ModelTarget Models.

 

PowerDesigner

&KDSWHU 0DQDJLQJ 6KRUWFXWV

The List of Target Models appears.

2SHQLQJ D PRGHO IURP WKH OLVW RI WDUJHW PRGHOV

You can use the list of target models to open a model.

If a target model cannot be opened, you can select another target model from a selection list.

For more information on changing the target model of a shortcut, see section Changing the target model of a shortcut.

ϖ7R RSHQ D PRGHO IURP WKH OLVW RI WDUJHW PRGHOV

1Select ModelTarget Models. The List of Target Models appears.

2Select a model with the Closed status.

3Click the Open Model tool.

The model opens in the current workspace.

2SHQ D WDUJHW PRGHO XVLQJ WKH 3URSHUWLHV WRRO

You can also open a closed target model by selecting the Properties tool. A message warns you that the model is closed, and asks you if you want to open it. Click OK to open the model in the current workspace.

General Features Guide

 

:RUNLQJ ZLWK VKRUWFXWV

&KDQJLQJ WKH WDUJHW PRGHO RI D VKRUWFXW

 

You can change the target model of a shortcut using the list of target models.

Example

You can have a target model called Project.pdm for which you create

 

shortcuts in the referencing model called Goals.pdm.

 

Then you create a copy of the referencing model Goals.pdm that you call

 

Goals_copy.pdm and in which you keep on working.

 

The Change Target Model feature allows you to select the model which will

 

contain the target objects of your shortcuts (Goals.pdm or Goals_copy.pdm).

 

When selecting a new target model, the following rules must be observed:

 

The new model must be already created

 

The new model must be of the same type as the previous one

 

The new model cannot be an imported file like a Rational Rose model

 

for example

 

Target models of internal shortcuts cannot be changed

 

,I WKH QHZ WDUJHW PRGHO LV DOUHDG\ RSHQHG LQ WKH ZRUNVSDFH The new

 

target objects are automatically updated with the shortcuts.

 

,I D VKRUWFXW FDQQRW ILQG LWV WDUJHW REMHFW A message box warns you.

 

You can either delete the shortcut because the target object no longer exists,

 

or redefine the target object because it has changed location.

 

,I WKH QHZ WDUJHW PRGHO LV QRW RSHQHG LQ WKH ZRUNVSDFH The new

 

target objects will be updated the next time you open the target model and the

 

shortcuts have a Closed status.

 

 

 

8QGR IHDWXUH QRW DYDLODEOH

 

You cannot use the Undo feature to cancel a Change Target Model action.

 

 

ϖ7R FKDQJH WKH WDUJHW PRGHO RI D VKRUWFXW

1Select ModelTarget Models. The List of Target Models appears.

2Select a model and click the Change Target Model tool.

RU

Select a model and click the File Name column.

A standard open dialog box appears. You can only select models of the same type.

 

PowerDesigner

&KDSWHU 0DQDJLQJ 6KRUWFXWV

3Browse to the directory that contains the target model to select.

4Click OK.

The properties of the new target model appear in the list.

5Click OK to close the list of target models.

'HOHWLQJ WKH VKRUWFXWV RI D WDUJHW PRGHO

You can use the list of target models to delete all the shortcuts of a target model.

ϖ7R GHOHWH WKH VKRUWFXWV RI D WDUJHW PRGHO

1Select ModelTarget Models. The List of Target Models appears.

2Select a target model in the list.

3Click the Delete tool.

A message warns you that all the shortcuts related to the target model will be deleted during this operation.

4Confirm the deletion of the target from the list and of all the related shortcuts.

'HOHWLQJ D VKRUWFXW

You can delete a shortcut in the diagram window, from the Browser tree view, or from the list of shortcuts.

For more information on deleting a shortcut from the list of shortcut, see section Deleting a shortcut from the list of shortcuts.

ϖ7R GHOHWH D VKRUWFXW LQ WKH GLDJUDP ZLQGRZ

1 Select the shortcut symbol.

General Features Guide

 

:RUNLQJ ZLWK VKRUWFXWV

2Press the DELETE key.

The shortcut is deleted without confirmation message.

ϖ7R GHOHWH D VKRUWFXW IURP WKH %URZVHU WUHH YLHZ

1Select a shortcut node in the corresponding object category.

2Press the DELETE key.

 

PowerDesigner

&KDSWHU 0DQDJLQJ 6KRUWFXWV

*HQHUDWLQJ VKRUWFXWV

Prerequisite in the shortcut property sheet

Prerequisite in the

Target Model Page

You can generate shortcuts through the Target Models page located in the PRGHO W\SH Generation Options dialog box. This page also allows you to

generate replications.

For more information on the generation of replications, see section Generating replications in chapter Managing Object Replications.

An external shortcut depends on a target object in a different model. Shortcuts allow you to share objects between different models.

By default, when you generate models into other types of models, shortcuts are generated as objects but you can choose to preserve the link between an external shortcut and its target model through generation and generate it as shortcut.

Before you generate new models, you have to do the following in the property sheet of each shortcut you want to generate as shortcut in the new model:

Verify that the Generate check box is selected in order to include the shortcut in the generation process

Select Shortcut in the dropdown listbox beside the Generated As zone to generate shortcut as shortcut in the new model

These properties can also be selected from the List of Shortcuts, which allows you to perform a multiple selection.

For more information on how to use the List of Shortcut, see section Using the list of shortcuts.

Through the Target Models page located in the PRGHO W\SH Generation Options dialog box, you also have to select generated models in order to retrieve the corresponding target objects of external shortcuts. External shortcuts can then be correctly linked to target objects in the correct target model.

The Target Models page displays the following columns:

&ROXPQ

'HVFULSWLRQ

Target Models

List (non modifiable) of all target models of the current

 

model that contain at least one shortcut generated as shortcut

Generated Models

List of generated models, which is only available when target

 

models are opened. You can select the model that will be

 

used as a target for the generated shortcut

 

 

General Features Guide

 

*HQHUDWLQJ VKRUWFXWV

Example of an

The following example shows the generation of a PDM from an OOM:

intermodel

 

generation with

 

shortcuts

 

Here is the proper sequence of events for external shortcuts generation:

OOM 1 is the target model of a shortcut in OOM 2

OOM 1 is generated to PDM 1

OOM 2 is prepared for generation to PDM 2 by associating appropriate properties and parameters in both the shortcut property sheet and the Target Models page:

,I 220 LV VWLOO RSHQHG LQ WKH ZRUNVSDFH The Target Model column displays the original target model (OOM 1), and its path. The Generated Models column displays the last generated PDM the first time you generate the OOM into a PDM ; the next time you generate the OOM into a PDM, the Generated Models column displays the last PDM selected. You can click the arrow in the Generated Models column to modify the PDM selection in order to allow the creation of a correctly linked shortcut.

,I 220 LV FORVHG LQ WKH ZRUNVSDFH The Target Model column displays the original target model (OOM 1), and its path. The Generated Models column displays <none>. When you click into the Generated Models column, the original target model OOM 1 is automatically opened in the workspace in order to find the models generated from OOM 1. You can use the arrow to select PDM 1, the new target that will allow the creation of a correctly linked shortcut in PDM 2.

The external shortcut in PDM 2 is correctly generated with a link to its target object in PDM 1

ϖ7R JHQHUDWH VKRUWFXWV

1 Select ToolsGenerate PRGHO W\SH.

The Generation Options dialog box appears.

 

PowerDesigner

&KDSWHU 0DQDJLQJ 6KRUWFXWV

2Click the Target Models tab.

It displays the list of target models of the current model together with the list of generated models if any.

3Verify the list of generated models for each shortcut you want to generate as shortcut or proceed to the appropriate changes.

4 Click OK to start generation.

General Features Guide

 

*HQHUDWLQJ VKRUWFXWV

 

PowerDesigner

Тут вы можете оставить комментарий к выбранному абзацу или сообщить об ошибке.

Оставленные комментарии видны всем.

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