52
Enterprise Architect
Series: Using EA
Working with the RTF Generator
UML 2 Case Tool by Sparx Systems
http://www.sparxsystems.com
© Sparx Systems 2009
Page
30
1. Save the external document as an RTF formatted document.
2. In Entrprise Architect, create a new blank template: F8 | Templates | New
3. In the RTF editor – select : File | Import
o From the Import File manager, select the RTF document created above.
4. Save as an EA-RTF Template using: File | Save
You can now insert RTF Sections into the template, as place-holders for automatically
generated model content.
Add Sections from an Existing Template:
You can copy RTF Sections from existing Enterprise Architect templates into your new
company template. For example you may want to reuse the structure defined by the
{basic template} in your company-specific template. To do this, open two copies of
Enterprise Architect (referred to as EA1 and EA2 below):
Note: Standard graphical images (i.e. Logo in the header, main text or footer)
are supported; however, any Word based meta-file graphics will not be
imported.
.
1. In EA1: Create a new RTF template based on your company template: F8 |
Templates | New - in Copy Template select the company template.
2. In EA2 : Create a new RTF template based on one with sections: F8 | Templates |
New – in Copy Template select an existing template (i.e. {basic template})
3. Mark & Copy the EA2 section-text (Package> to <Package)
4. Paste this into EA1’s template
5. Save the EA1 template
6. Re-open the EA1 template to restore the sections tree.
Note: The styles in the imported template can be updated d to include the
system styles in Normal.RTF using: File | Update Styles.
Setting Document Options
The RTF generator has two places for setting the document options. One sets the options
for the current print session, while the other sets up the default for all runs on this report.
Settings for the Current Run of a Document
•
Select a package and press F8 to open the report dialog.
•
In the Generate RTF Documentation window select tab Options
You can create filtering settings here for the current document set to be run.
Selections are non-persistent, and are reset when you select a different template.
Default Settings for a Document
•
Select a package and press F8 to open the report dialog.
•
In the Generate RTF Documentation window select Edit Template.
In the reports menu, select File | Document Options – this will return a similar dialogue
box. Settings made here will be saved with the template as the default settings for any run
on this report.