Book a Demo

Author Topic: Possible to generate RTF Reports from diagrams?  (Read 4224 times)

Michael Lutz

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Possible to generate RTF Reports from diagrams?
« on: April 16, 2008, 10:20:54 pm »
I would like to generate a report including all classes in a diagram (i.e. potentially classes from different packages), not only those in one package. Is this possible somehow?

Cheers, Michael

Oliver F.

  • EA User
  • **
  • Posts: 573
  • Karma: +2/-1
  • Aren´t we all in the model business ?
    • View Profile
    • Karl Storz homepage
Re: Possible to generate RTF Reports from diagrams
« Reply #1 on: April 16, 2008, 11:18:41 pm »
Open the diagram properties and look for the "include diagram elements in RTF report" option.

Then in the template tick the diagram->model elements checkbox to include those. There is a subset of element information available (eg. name, notes, and a few more) to be included.

Note that under certain circumstances EA generates garbage in the RTF if the model elements checkbox is set in a template but the diagram does not exhibit the same setting in its options.

Oliver

Michael Lutz

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Possible to generate RTF Reports from diagrams
« Reply #2 on: April 17, 2008, 12:50:07 am »
Thanks, Oliver. This works nicely for at least listing the classes shown in the diagram. However, we would also need to list their attributes, operations etc. (everything that I can select in the normal "elements" checkbox). Any idea how I could get EA into doing this for me? (I've already tried copy-pasting the "element" fields into the "diagram" tag in the RTF - but not surprisngly, that didn't work...)

Thanks, Michael

Oliver F.

  • EA User
  • **
  • Posts: 573
  • Karma: +2/-1
  • Aren´t we all in the model business ?
    • View Profile
    • Karl Storz homepage
Re: Possible to generate RTF Reports from diagrams
« Reply #3 on: April 17, 2008, 01:24:01 am »
Quote
Thanks, Oliver. This works nicely for at least listing the classes shown in the diagram. However, we would also need to list their attributes, operations etc. (everything that I can select in the normal "elements" checkbox). Any idea how I could get EA into doing this for me? (I've already tried copy-pasting the "element" fields into the "diagram" tag in the RTF - but not surprisngly, that didn't work...)

That will indeed not work. You only have a limited subset you can define for embedded elements from diagrams and attributes are not among those.

Oliver

Jan ´Bary´ Glas

  • EA User
  • **
  • Posts: 408
  • Karma: +0/-0
  • Bary
    • View Profile
Re: Possible to generate RTF Reports from diagrams?
« Reply #4 on: April 18, 2008, 07:46:43 pm »
It was working somehow. I have not my templates with me.

Try to fill both sections
Diagram > Element (with no content)
and
Element > (definition of element content incl. attributes)

For your report you have to move the diagram in a package without elements.

This should take the content definition from one section and use it in the other.

Can someone confirm this?
[edit]I have tried it and YES, it is working. Don't forget to check in Diagram Properties that "Document each contained element in RTF" checkbox.
Just for start:
Code: [Select]
package >
{Pkg.Name}
diagram >
{Diagram.DiagramImg}
{Diagram.Name}
element >
< element
< diagram
element >
{Element.Name}
attribute >
{Att.Name}:{Att.Type}
< attribute
< element
< package
[/edit]
« Last Edit: April 18, 2008, 09:12:07 pm by Bary »
Jan 'Bary' Glas