Book a Demo

Author Topic: RTF Report: Display Attrs of Classes on a Diagram  (Read 4841 times)

Mark_A

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
RTF Report: Display Attrs of Classes on a Diagram
« on: August 24, 2012, 10:42:24 pm »
Hi

I'm currently trying to produce a "View of Participating Classes" report for a class diagram. I can display the diagram and all the classes on the diagram, but then don't appear to be able to access the attributes of the classes to display them.

Does anyone have an idea if this is possible?

Note that the classes may not reside in the same package as the diagram - in fact they probably won't.

Mark

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: RTF Report: Display Attrs of Classes on a Diag
« Reply #1 on: August 24, 2012, 10:55:30 pm »
If you just want attributes of a class shown on a diagram, right mouse click on the diagram and select Diagram Properties, on the Elements tab ensure that you check show compartments "Attributes".

If however you want to display your diagram as, but have a table of atributes for each class on your diagram, printed below the diagram in your RTF report you will need to create you own RTF template - quickest way to get started here is the help files and copying an existing Sparx RTF report as a starting point when you create your first RTF template...

Mark_A

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: RTF Report: Display Attrs of Classes on a Diag
« Reply #2 on: August 24, 2012, 10:59:52 pm »
I'm wanting to do the latter - have a table of attributes for each class on the diagram. I've tried to create a template but can't seem to find a way to get at the attributes of the class, only the class.

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: RTF Report: Display Attrs of Classes on a Diag
« Reply #3 on: August 29, 2012, 02:39:57 am »
It will be a case of all or nothing. You can use the document "Options" tab to exclude details for "All" elements except Class. Then add your Element -> Attribute section to your diagram. If however you want to include details of other element types in your diagram (not just classes) you will have to explore the help sections on Model Documents and create one table for classes and another (without attributes) for your other elements then combine them in a Model Document.

Regards,

Jon.

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: RTF Report: Display Attrs of Classes on a Diag
« Reply #4 on: August 29, 2012, 02:41:14 am »
Sorry meant "one template for..." in previous post...