Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: wozoi on July 03, 2005, 02:29:48 am

Title: Export preferences settings
Post by: wozoi on July 03, 2005, 02:29:48 am
Hy,

is it possible to export preferences settings that were configured in the tool options tabs?

regards,

wozoi
Title: Re: Export preferences settings
Post by: AshK on July 03, 2005, 06:28:15 pm
Hi Wozoi,

Currently EA doesn't have it's own means of doing this, but you can do so manually.

All of these settings are stored in the the windows registry under the following branch:

HKEY_CURRENT_USER\Software\Sparx Systems\EA400

Using regedit, you should be able to export this branch, then import it on another users account or pc.

HTH :),

Ash
Title: Re: Export preferences settings
Post by: Eve on July 03, 2005, 07:55:45 pm
Of course, always remember to take appropriate precautions including a backup when manually editing your registry .  ;)
Title: Re: Export preferences settings
Post by: Huub on May 07, 2019, 06:09:35 pm
is this still the (only) way to go? Or is there a userfriendlier way? (at my company we'll be moving from EA 13 to 14 soon)
Title: Re: Export preferences settings
Post by: qwerty on May 07, 2019, 07:21:53 pm
Yes, still the same way.

q.
Title: Re: Export preferences settings
Post by: shimon on September 12, 2023, 10:14:19 pm
Hi,
Is there any way to copy specific preference settings to a file?
Thanks,
Shimon
Title: Re: Export preferences settings
Post by: qwerty on September 13, 2023, 03:00:28 am
No. Just read what you need and ignore the rest...

q.
Title: Re: Export preferences settings
Post by: shimon on September 19, 2023, 03:32:04 pm
Hi Qwerty,
Thanks for your reply. In our EA environment we ask the users to change some settings,  "Disable fully scoped object names" for one. The problem is that this must be done per user / per computer. If they "forget" to tweak this setting and save some class diagrams, they get prtetty messed up.

I was wondering if there was a way to write a Windows shell script to import these settings. In order to start, I was wondering if each setting has its own discernable key.
I found that your solution is the easiest for the first time user, but may be very annoying for an existing user, as importing the full registry settings and options of EA will very likely overwite the existing workspace setting of the user.
There probably is a way to write a Shell script to import specific settings, but as this is not needed for us, I didn't bother playing around with it.
Sincerely,
Shimon



 
Title: Re: Export preferences settings
Post by: Geert Bellekens on September 19, 2023, 03:53:09 pm
It's simply a matter of writing to the correct registry setting. That can easily be done with a script.

Here's an EA-Matic script one that checks and changes some of the required user settings when starting up a model.

Code: [Select]
https://github.com/GeertBellekens/Enterprise-Architect-VBScript-Library/blob/master/Projects/EA-Matic%20Scripts/Fix%20Mandatory%20User%20Settings.vbs
Geert
Title: Re: Export preferences settings
Post by: qwerty on September 19, 2023, 06:16:10 pm
Pls. note that settings in EA are a mix of user defined (going to the registry) and global ones (going to the database). It's not clear which is which probably since EA was first written as a single user application (I guess). Sparx never cleaned that though the application is since a long time no single user app.

q.
Title: Re: Export preferences settings
Post by: Geert Bellekens on September 19, 2023, 06:43:34 pm
Pls. note that settings in EA are a mix of user defined (going to the registry) and global ones (going to the database). It's not clear which is which probably since EA was first written as a single user application (I guess). Sparx never cleaned that though the application is since a long time no single user app.

q.

I think it's a bit more nuanced then that. EA has improved somewhat over time.
In since a while (v15?) there are two places to set settings:

- Start | Appearance | Preferences | Preferences These are mostly user specific settings, stored in the userprofile (appdata or registry)
- Settings | Model | Options These are all options stored in the model.

Geert
Title: Re: Export preferences settings
Post by: qwerty on September 20, 2023, 02:46:28 am
Sort of. Preferences | Preferences. Means its the preference for the preference. I'd like it with chili sauce... And of course  mostly.

q.