Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Knaldgas on October 03, 2015, 04:12:43 am
-
I'm trying to generate an RTF document with the following structure:
Package
|- Diagrams
| |- Elements
| | |- Connectors, opposing element
In other words:
1) A list of diagrams in, and below, a selected package.
2) For each diagram, list contained elements.
3) For each element in diagram, list connector and element in the other end (cross-reference).
I have managed the easy part of 1 and 2, but I can't quite figure out how to get 3. Under each element in the diagram, I would like to list connectors from/to this element and the name of the element in "the other end".
It must be possible, but how?
-
Having searched and read a bunch of white papers, questions and answers about EA document scripting, and the fact that no-one has been able to answer this question, I've come to the conclusion that EA cannot do this in a simple way... :-[
-
It certainly can be done, but it might require a little bit more complicated solution.
If the template selector can't help you out I would recommend to look into SQL Fragments.
There's an easy to follow example in the learning centre.
If you don't really want to dig into the technical details you might want to consider
- Purchasing eaDocX - an add-in that gives you a bit more options without having to write code or SQL queries
- Hiring an EA consultant to do the work for you. Check the Value Added Resources (http://www.sparxsystems.com/partners/vars.html) section for a consultant in your region.
Geert
-
Hi Geert,
Thanks for your answer.
I did write a VBScript that made my customer happy, so I'm good :)