Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Geert Bellekens 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
-
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.
-
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
-
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.
-
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
-
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.
-
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