Book a Demo

Author Topic: Some questions about addins  (Read 4015 times)

romu

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Some questions about addins
« on: January 18, 2011, 03:46:58 am »
Hi all,
I've a couple of questions regarding the addin I'm creating:
- is there a way to record in the eap file some addin specific properties? the use is:
  • The user opens my addin GUI
  • Then sets some parameters
  • These parameters are recorded into the eap file and may not be changed

- is there a way to launch the XMI export from within an addin?

Thanks for the help.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Some questions about addins
« Reply #1 on: January 18, 2011, 06:18:54 pm »
There are a few options to store your information in the eap file.
You could add your own table, but I don't recommend that.
In stead your could abuse the notes of the root node to store your parameters.
The advantage is that this property cannot be viewed or edited by the user, and you don't have to change the standard database schema.

For XMI export look at Project Interface.ExportPackageXMI  or ExportPackageXMIEx

Geert

romu

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Some questions about addins
« Reply #2 on: January 20, 2011, 02:52:19 am »
Thanks a lot.
I didn't try yet the XMI export, but the Notes trick works pretty well.

romu

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Some questions about addins
« Reply #3 on: January 25, 2011, 02:18:49 am »
Hi,
Exporting the XMI works well too, but is there a way to not display the XMI export dialog ?