Book a Demo

Author Topic: How to generate 'Defined Documents' automatically?  (Read 3590 times)

genaumi

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
How to generate 'Defined Documents' automatically?
« on: March 09, 2018, 08:59:18 pm »
Hello,

I would like to generate all defined documents that are part of an EA model without any user interaction.
Thats why I tried to write a small C# command line tool, that opens the EA model to generate these documents.

Is there any example code available?
Is there any complete documentation of the database model available? (It is not possible to open the EA database with the latest MS Access version.)


Thanks!

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: How to generate 'Defined Documents' automatically?
« Reply #1 on: March 09, 2018, 09:17:28 pm »
Hello, and welcome to the forum. Please note that we're all users here.

For general code samples, have a look at the Code Samples page.

The database is famously undocumented, but you can generate a model of it using EA itself.

I haven't tried doing what you're attempting, but I would assume it would involve a number of calls to Project.RunReport() (documentation here). How you'd go about finding "all defined documents" I couldn't say off-hand.

Finally, keep in mind that while you can interact with an EA project through the API, you cannot set your program up to run on a server. It has to run in an interactive session. There are many posts on this in this forum. (Use the search function in the forum menu, the search box in the upper right doesn't work).

HTH,


/Uffe
My theories are always correct, just apply them to the right reality.

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 generate 'Defined Documents' automatically?
« Reply #2 on: March 09, 2018, 09:21:03 pm »
There is also Thomas Kilians book Inside Enterprise Architect that documents the database, and my C# examples on Github

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How to generate 'Defined Documents' automatically?
« Reply #3 on: March 10, 2018, 01:48:11 am »
You can reverse-engineer EAP files using EA itself. There are also quite a number of clients that can read (are they legacy now?) that Access database.

q.