Book a Demo

Author Topic: RTF document generation: Include only one diagram  (Read 5708 times)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
RTF document generation: Include only one diagram
« on: August 21, 2015, 04:59:19 pm »
Suppose I have a folder with 10 use case diagrams, and I only want one of them to show up in my document. How do I do that?

I'm having a lot of fun writing really complex document templates, and I did find solutions for almost all of the challenges I faced, but I'm having a hard time coming up with a solution for this one.

In case it isn't possible I'll send in a feature request, but before I do I wanted to check if maybe someone else has a solution.

Thanks

Geert

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: RTF document generation: Include only one diag
« Reply #1 on: August 24, 2015, 08:31:39 am »
In the diagram properties there are some document generation options. One is exclude image from Documentation.

If that's not what you want, I think the only way to do it is with the scripted interface.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: RTF document generation: Include only one diag
« Reply #2 on: August 24, 2015, 04:11:21 pm »
The problem is that that setting is on the model level, not the virtual document level.

For this document I only want diagram A, but for another document I only want diagram B.

I'll send in a feature request.

For now I'll make sure we have only one diagram per package or element.

Geert

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: RTF document generation: Include only one diag
« Reply #3 on: August 25, 2015, 08:08:42 am »
As I previously said, look at the scripted interface. It will allow you to generate your documents now rather than wait for us to decide a feature needs to be added and determine a generic way for users to map multiple diagrams to multiple different reports.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: RTF document generation: Include only one diag
« Reply #4 on: August 25, 2015, 04:33:01 pm »
Quote
As I previously said, look at the scripted interface. It will allow you to generate your documents now rather than wait for us to decide a feature needs to be added and determine a generic way for users to map multiple diagrams to multiple different reports.
Simon,

Is there any way I can mix your scripted interface with the standard templates?
I want to do the least amount of scripting possible and do as most as possible with standard EA template builder stuff.
I won't be here forever, and with the scripted solution I would be the only one to understand and be able to maintain the document templates.
When I'm using standard EA template stuff my clients can understand and maintain most of it themselves.

Geert

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: RTF document generation: Include only one diag
« Reply #5 on: August 26, 2015, 08:18:34 am »
The scripted reports explicitly document the elements and diagrams you want with the templates you request. It should be as simple as doing a call (or whatever) for the list of elements/diagrams to document and then calling the generator functions for each.

The current version will require starting the generation from the script, but I believe our next version has the ability to call that generator from a normal template generation.
« Last Edit: August 26, 2015, 08:20:45 am by simonm »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: RTF document generation: Include only one diag
« Reply #6 on: August 26, 2015, 02:59:56 pm »
Quote
The current version will require starting the generation from the script, but I believe our next version has the ability to call that generator from a normal template generation.

That would be a nice addition indeed, I'm looking forward to testing it.

Geert