Book a Demo

Author Topic: project.runreport() for single elements  (Read 3752 times)

Stefan Bolleininger

  • EA User
  • **
  • Posts: 308
  • Karma: +0/-0
    • View Profile
project.runreport() for single elements
« on: July 03, 2013, 07:53:02 am »
Hi,

i just started out agin within the report generation. on package levle everything is quite fine, however it is not possible to report on elements from the API.

API: project.runreport(string package.GUID, templatename, filelocation);

within the normal workflow, hitting "F8" and report the single element will do the trick.

why is it not possible to use the api for elements, or did I missed out something?

Regards

Stefan
Enterprise Architect in "safetycritical development" like medical device industry. My free Add-in at my Website

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: project.runreport() for single elements
« Reply #1 on: July 03, 2013, 12:03:43 pm »
In theory the RunReport(Element.ElementGUID , ..)  should work - but if not see the DocumentGenerator Class - DocumentElement (long elementID, long nDepth, string templateName):
http://www.sparxsystems.com/enterprise_architect_user_guide/10/automation_and_scripting/document_generator_interface_class.html

There is a script example supplied with EA that covers the DocumentGenerator Class - best to see that example.

Stefan Bolleininger

  • EA User
  • **
  • Posts: 308
  • Karma: +0/-0
    • View Profile
Re: project.runreport() for single elements
« Reply #2 on: July 04, 2013, 04:23:06 am »
Hi,

in practice: It doesn't  >:( :o

The DocumentGenerator however, did the Trick

Thank you

Regards

Stefan
Enterprise Architect in "safetycritical development" like medical device industry. My free Add-in at my Website