LIMIT Commands

(Creating a Custom Template – cont.)

image\btn_prev.gif image\btn_top.gif

 

When retrieving objects from a Rose model, there may be objects that exist in some instances and do not exist in others. For example, not all Classes have Operations. In this case, you might not want to create a section for Operations. You can do this with a LIMIT_Omit command.

1.    In the Custom1.doc template, click SoDA > Template View.

2.    In the left pane, expand the REPEAT commands and click on the REPEAT Operation command. In the template (Custom1.doc), notice that the REPEAT command for Operations is highlighted.

3.    In the template, place the cursor at the beginning of the REPEAT annotation (include the [MASTER]) for Operations. Click and drag through the DISPLAY for Operation.Name, and through the first set of [ENDREP][ENDMAST] annotations.
Hint: REPEAT command annotations include a [MASTER] and [ENDMAST], making the entire command look like this [MASTER][REPEAT]<some_DISPLAY_commands_and_text>[ENDREP][ENDMAST].

4.    Click SoDA > Add Command. Select Special LIMIT Command: Omit. Click OK. [LIMIT] and [ENDLIMIT] annotations are added to the REPEAT command.

5.    Close the Template View and click SoDA > Generate Report. Save the template when prompted. Examine the completed document.

This concludes the Creating a Custom Template exercise. Continue by doing one of the following:

§     Click Next to continue with the Tutorial.

§     Click the X in the top right corner of this window to exit.

§     Click Top to go back to the top of the Tutorial.

§     Click Prev to review this exercise.