Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: martin1 on July 10, 2014, 09:32:08 pm

Title: Best place to store add-in configuration params?
Post by: martin1 on July 10, 2014, 09:32:08 pm
What's the best place to store add-in (c# automation interface) configuration parameters? Does EA provide a convenient place where specific settings can be stored (somewhere in the project/repository, etc.) or do I need to take care of that myself?
Title: Re: Best place to store add-in configuration param
Post by: EXploringEA on July 10, 2014, 11:32:18 pm
Hi

In my experience it all depends on the nature of the parameters.
If they are AddIn (user) parameters Then I usually store within the users application settings as with any other application.

For those few case where I want to have project specific parameters I have created a unique view with a package that has tagged values.  The issue / potential problem is that if these are parameters the users doesn't need they may just decide to delete your package, unless you have security enabled and lock the stuff!

I must say that keeping stuff in the models has never proved great but I have had to it when needing to share settings.

So it all comes down to whether it's project or user specific data.

Hope that helps.
Title: Re: Best place to store add-in configuration param
Post by: qwerty on July 11, 2014, 05:06:18 am
I simply use the registry key for my add-in. There you can place new strings as you wish.

q.