Author Topic: RTF - Diagrams, with elements and connectors  (Read 4121 times)

Knaldgas

  • EA User
  • **
  • Posts: 36
  • Karma: +1/-0
    • View Profile
RTF - Diagrams, with elements and connectors
« 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?

Knaldgas

  • EA User
  • **
  • Posts: 36
  • Karma: +1/-0
    • View Profile
Re: RTF - Diagrams, with elements and connectors
« Reply #1 on: October 18, 2015, 04:18:26 am »
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... :-[

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: RTF - Diagrams, with elements and connectors
« Reply #2 on: October 20, 2015, 03:20:28 am »
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 section for a consultant in your region.

Geert

Knaldgas

  • EA User
  • **
  • Posts: 36
  • Karma: +1/-0
    • View Profile
Re: RTF - Diagrams, with elements and connectors
« Reply #3 on: December 09, 2015, 06:11:39 am »
Hi Geert,

Thanks for your answer.
I did write a VBScript that made my customer happy, so I'm good :)