Author Topic: structure/order of Diagram.Elements in Custom Template (Document Publishing)  (Read 1777 times)

Z

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Hi,

In regards to generating our report, we would like to adapt the order (and if possible sort) of the subElements under Package.Diagram.Element (see https://ibb.co/LS20BQG, we're not referring to Package.Element on a higher level, the sort order on that level can be adapted in the Document Options and you can change the general order with the up/down icon.)

Today, when you generate the report, Sparx delivers the correct elements with the correct content. We would just like to change the report from displaying Classes last (and first CodeLists and Enumerations) to Classes first (example ' Here's the diagram, the Classes, the Enumerations and the Codelists ').

Anyone had succes in this? We only found older references on the forum and the documentation refers to the above options.

Last (unsuccesful) test was trying to add the element> <element header twice in the template, the first time for classes and the next time for the rest - but this resulted in a corrupted template ^^

EA 15.2

Regards,
Z

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
You can use template fragments to show those parts.
In the fragment template you can set the filter to a specific type of element.

Geert