Book a Demo

Author Topic: Resue element template in RTF  (Read 3440 times)

Hazzelbanger

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Resue element template in RTF
« on: October 16, 2015, 04:58:35 pm »
I am attempting to create a report template for my model.

The model package structure is
Package
  class_1
     nested_class_1-1
     nested_class_1-2
  class_2
     nested_class_2-1
     nested_class_2-2

I would like to create a report template with the following layout:

Package name
List of parent classes within the package
All diagrams within the package
For each parent class in the package
      Display parent class name
      For each nested class of the parent class
            Display name of nested class
            For each attribute of nested class
                  Display attribute name, notes

Two problems:
1. I don't seem to be able to include the <element> template more than once.
2. I am not able to extract the attributes of the nested classes.

Any help is greatly appreciated.

Regards John

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Resue element template in RTF
« Reply #1 on: October 16, 2015, 05:02:35 pm »
Hazzelbanger,

I think you best have a look at template fragments.
Standard EA isn't very good at doing reporting stuff about nested elements.

Worst case you'll have to use a virtual document and create a model document for each class to be reported.

Geert