Book a Demo

Author Topic: Document each contained elem. generates only tag  (Read 4795 times)

armin

  • EA User
  • **
  • Posts: 63
  • Karma: +0/-0
  • mission possible
    • View Profile
Document each contained elem. generates only tag
« on: February 19, 2007, 08:44:57 am »
Hi,

I would like to generate a rtf report which contains all diagrams in all of my subpackes. After each diagram there should be a list of contained elements (classes, components,...) whith its notes. I checked the "Document each contained element in rtf" box in diagram properties and created the following rtf template:

package >
diagram >
{Diagram.Name} - ({Diagram.Type} diagram)
{Diagram.Notes}
{Diagram.DiagramImg}
Figure {Diagram.Figure}
element >
{Element.Name}
{Element.Notes}
< element
< diagram
element >
embedded elements >
< embedded elements
diagram >
< diagram
child elements >
< child elements
< element
child package >
< child package
< package

The diagrams appear. Foreach element in a diagram the generator generated the tags "{Element.Name}" and "{Element.Notes}" but not the name or the note itself.

Is there a solution for that problem?

Thanx in advance Armin

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Document each contained elem. generates only t
« Reply #1 on: February 19, 2007, 08:58:31 am »
What about the elements themselves? Are they contained in the same package as the diagram you are documenting?

If not, perhaps EA is only mentioning them here because there are diagram objects referring to these (foreign) elements. If you document the packages containing these elements, do you get the desired results?
No, you can't have it!

armin

  • EA User
  • **
  • Posts: 63
  • Karma: +0/-0
  • mission possible
    • View Profile
Re: Document each contained elem. generates only t
« Reply #2 on: February 19, 2007, 09:03:02 am »
Most packages contains diagram(s) and its elements. But there are also packages which contains only diagrams. In both cases it is the same output: the elment.name tag but not the elements name.

If I have no subpackages in the package I select for generation the generator works correctly.
« Last Edit: February 19, 2007, 09:04:29 am by armin »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Document each contained elem. generates only t
« Reply #3 on: February 19, 2007, 09:33:08 am »
Which RTF generator are you using? Remember, there are two.

What are your settings?
No, you can't have it!

armin

  • EA User
  • **
  • Posts: 63
  • Karma: +0/-0
  • mission possible
    • View Profile
Re: Document each contained elem. generates only t
« Reply #4 on: February 19, 2007, 09:42:49 am »
I use the template based generator. (The one with the small start dialog - Titel: "generate RTF documentation").

peter.zrnko

  • EA User
  • **
  • Posts: 253
  • Karma: +0/-0
    • View Profile
Re: Document each contained elem. generates only t
« Reply #5 on: February 19, 2007, 01:12:45 pm »
According to Working with the RTF Generator (PDF) section "Recursion through Packages and Elements" it has to work as you supposed. I've tried it and it didn't. It seems to me it's a bug.

But there is a solution to you. Remove content of

diagram >
element >
{Element.Name}
{Element.Notes}

< element
< diagram

to element itself:

element >
{Element.Name}
{Element.Notes}

< element

your template will look like this:

package >
diagram >
{Diagram.Name} - ({Diagram.Type} diagram)  
{Diagram.Notes}
{Diagram.DiagramImg}
Figure {Diagram.Figure}
element >
< element
< diagram
element >
{Element.Name}
{Element.Notes}
embedded elements >
< embedded elements
diagram >
< diagram
child elements >
< child elements
< element
child package >
< child package
< package

The
diagram > element >
section will be rendered using
element >
section.

Peter

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Document each contained elem. generates only t
« Reply #6 on: February 19, 2007, 02:48:59 pm »
And in the meantime please report the bug to Sparx with the Bug Report Page. You'll find the link by clicking Support at the top of the forum page and looking in the left-side menu.

If possible send Sparx a zipped copy of the offending project.

Since a build just came out, they can hopefully address this for the next build.
No, you can't have it!

peter.zrnko

  • EA User
  • **
  • Posts: 253
  • Karma: +0/-0
    • View Profile
Re: Document each contained elem. generates only t
« Reply #7 on: February 20, 2007, 01:45:23 pm »
The solution I've described doesn't work. The section >diagram>element is not rendered. What I've seen in my experiments was always the section >element.
Peter

armin

  • EA User
  • **
  • Posts: 63
  • Karma: +0/-0
  • mission possible
    • View Profile
Re: Document each contained elem. generates only t
« Reply #8 on: February 20, 2007, 11:27:23 pm »
I've posted this bug to Sparx. They will correct it.  :D