Running templates

 

Introduction

Diagram and documentation templates are launched directly from the Objecteering interface, through theLaunch diagram template” and “Documentation generationcommands.

 

In order for these commands to be available, the “MDARuntime” MDAC must already be deployed in the project.  For information on how to deploy this MDAC, please see "Working with MDACs".

 

The “Launch diagram template” and “Documentation generation” commands are available in the context menus on all elements (Figure 142).

 

Figure 142. The commands to launch templates

 

It is also possible to create a command available on an MDA component to automatically execute templates. For more information, please see “Creating commands”.

 

Applying a diagram template

After running the “Launch diagram template” command on the element on which the template is going to be applied, the “Template selection” window then appears. This window (Figure 143) is used to select the template you wish to apply.

 

Figure 143. Applying a diagram template

 

Steps:

1.      Select the diagram template you wish to use.

2.      If you want the template to be applied to all the elements of the selected element, check this tickbox. Only “NameSpace” elements are browsed.

3.      Click on the “OK” to confirm to run the template.

 

Applying a documentation template

After running theDocumentation generation” command on the element on which the template is going to be applied, the “Template selection” window then appears. This window (Figure 144) is used to select the template you wish to apply.

 

Figure 144. Applying a documentation template

 

Steps:

1.      Select the documentation template you wish to apply.

2.      Select the format:

·         XML (DocBook)”

·         “Multiple HTML - generation in several files”

·         “Simple HTML - generation in one file”

·         “PDF (Portable Document Format)”

·         “RTF (Rich Text Format)”

·         “RTF (Rich Text Format) with round trip tags”

3.      Click on the “OK” to confirm to run the template.