Book a Demo

Author Topic: Showing Diagram Notes before Diagram Image in custom document template  (Read 2988 times)

vsantos01

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile

This is my first message on the forum, so hi everyone. I hope you can help me out here.

I'm trying to automate the creation of the documents needed to fulfill our development process and have the required workproducts extracted from the design data in EA rather than manually crafting them in word copy/pasting from the EA file. To do so, I've been messing around with Custom Document Templates, and I'm pretty happy with what I have accomplished so far. There's one thing, though, that's bugging me and I cannot see how to fix it, whcih is what the title pretty much says: I want the Diagram Notes to appear before the Diagram image in the generated document, but no matter what I do on the template that it stubbornly shows the image before the notes.

This is what I have on my template:

Code: [Select]
package >
{Pkg.Name}
{Pkg.Notes}
diagram >
{Diagram.Name}
{Diagram.Notes}
Following, the diagram detailing this:
{Diagram.DiagramImg}
< diagram
< package


As you can see, {Diagram.Notes} is placed before {Diagram.DiagramImg} and some text is manually added in between. But what I get is:


Code: [Select]
Following, the diagram detailing this:
{{ diagram image here }}
{{ diagram notes here }}


How can I solve this?


Thanks


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Showing Diagram Notes before Diagram Image in custom document template
« Reply #1 on: August 18, 2022, 12:33:54 am »
Are you sure you are using the correct template?
Look you are editing the another template than the one you are testing.

Geert

vsantos01

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Showing Diagram Notes before Diagram Image in custom document template
« Reply #2 on: August 18, 2022, 04:46:05 pm »
Hi

Yes, sure I'm using the correct one. Anyway, I created a custom stylesheet and now it works. I don't see the relation, so maybe something different happened under the hood. Maybe there was some kind of internal caching which got stuck until the new stylesheet was created. I will try to create a brand new file and try to reproduce it. Will be back with results.

Rgds
Victor

vsantos01

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Showing Diagram Notes before Diagram Image in custom document template
« Reply #3 on: August 18, 2022, 07:57:46 pm »
I made a test starting a new file from scratch and quickly adding a pacakge, a use case diagram, a custom template document... and everything worked as expected. I have no idea what was happening before. I believe the stylesheet was messing around somehow. Anyway, topic closed.