Book a Demo

Author Topic: RTF - Element order  (Read 2863 times)

Paul W

  • EA User
  • **
  • Posts: 34
  • Karma: +0/-0
    • View Profile
RTF - Element order
« on: December 11, 2008, 08:50:59 pm »
What determines the order elements are reported when reporting Diagram Elements. I would have thought it would be current package elements then other elements, but it seems more to be the order in which the elements were added to the diagram.

Can somebody shed some light on this?


My RTF templete looks something like this!

package>
package diagram>
{diagramimage}
diagramelement>
<diagramelement
<package diagram
element>
{ElementName}
...
<element
childelement>
<childelement
childpackage>
<childpackage

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: RTF - Element order
« Reply #1 on: December 11, 2008, 11:45:24 pm »
This is a guess but probably worth trying. Check the Sequence attribute of the DiagramObject class. The documentation shows this as the Z-order of the object, but on a diagram this could be (effectively) the same as the order the objects are rendered. Perhaps EA always 'delivers' them in this order.

My guess (there's that word again) is that this acts something like the Pos attribute of the Attribute class.
No, you can't have it!