Book a Demo

Author Topic: How to report on elements contained on a diagram  (Read 8606 times)

slaza

  • EA Novice
  • *
  • Posts: 4
  • Karma: +2/-0
    • View Profile
How to report on elements contained on a diagram
« on: January 23, 2018, 10:13:14 pm »
Dear All,

I am sure there is an easy way of doing it, but I couldn't find it... I created a diagram with a number of elements on it. These elements are located in a different package, not in the same as the diagram.

I would like to make a report that lists the name and the notes of the elements included in the diagram. (The package that contains the elements contains 600+ elements, I don't want to see all of them. I only want to see the ones that are on my diagram.)

Thank you for your help,

Sandor

Arshad

  • EA User
  • **
  • Posts: 290
  • Karma: +21/-1
    • View Profile
Re: How to report on elements contained on a diagram
« Reply #1 on: January 23, 2018, 10:43:39 pm »
Hi Slaza

I would like to make a report that lists the name and the notes of the elements included in the diagram. (The package that contains the

Have you considered using Documentscripts or CustomScripts on reporting ? Create a script , loop diagramobjects of a digram from selected package and assign the script to documentscript or customscript.
You will get the report of only the diagram objects :)  ;)
« Last Edit: January 23, 2018, 10:56:35 pm by Arshad »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How to report on elements contained on a diagram
« Reply #2 on: January 23, 2018, 10:48:21 pm »
For a simple scenario like that there's no need to use scripts or any other fancy stuff.
You should be able to get the results you need using the section

Package>Diagram>Element>

If that isn't sufficient then I would first see if I could do what I need using an SQL fragment. Only if that is also not feasible would I go the scripting path.

Geert

slaza

  • EA Novice
  • *
  • Posts: 4
  • Karma: +2/-0
    • View Profile
Re: How to report on elements contained on a diagram
« Reply #3 on: January 23, 2018, 10:48:40 pm »
Thank you, for your answer! I considered scripting, but I hoped that there is a checkbox in the document template somewhere that I can check to get the result I need. If there is none, I might need to fall back to scripting...  ;)

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: How to report on elements contained on a diagram
« Reply #4 on: January 23, 2018, 11:51:15 pm »
Try this:

  • Open the diagram properties for the diagram containing the elements to be reported on
  • Select Diagram in the tree on the left hand side
  • Check the check box labelled Add each contained element in Documentation
  • Close the Diagram Propeties

Then in your document template

  • Check Package and Diagram
  • Expand the Diagram check box and select Element

Add the data fields in the Element tags

If you wish you can use Document Options to filter the report for selected element types, etc

Phil
Models are great!
Correct models are even greater!

slaza

  • EA Novice
  • *
  • Posts: 4
  • Karma: +2/-0
    • View Profile
Re: How to report on elements contained on a diagram
« Reply #5 on: January 24, 2018, 12:06:45 am »
Thank you! That is the switch I was looking for amongst the diagram properties!!!!

If it is not switched on, diagram elements are not be reported even if I include them in the template. It works like a charm now!

Thank you again,

Sandor