Author Topic: Export preferences settings  (Read 3545 times)

wozoi

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Export preferences settings
« 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

AshK

  • EA User
  • **
  • Posts: 137
  • Karma: +0/-0
    • View Profile
Re: Export preferences settings
« Reply #1 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
The Sparx Team
[email protected]

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 7913
  • Karma: +109/-20
    • View Profile
Re: Export preferences settings
« Reply #2 on: July 03, 2005, 07:55:45 pm »
Of course, always remember to take appropriate precautions including a backup when manually editing your registry .  ;)

Huub

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Export preferences settings
« Reply #3 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)

qwerty

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +387/-299
  • I'm no guru at all
    • View Profile
Re: Export preferences settings
« Reply #4 on: May 07, 2019, 07:21:53 pm »
Yes, still the same way.

q.

shimon

  • EA User
  • **
  • Posts: 65
  • Karma: +0/-0
    • View Profile
Re: Export preferences settings
« Reply #5 on: September 12, 2023, 10:14:19 pm »
Hi,
Is there any way to copy specific preference settings to a file?
Thanks,
Shimon

qwerty

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +387/-299
  • I'm no guru at all
    • View Profile
Re: Export preferences settings
« Reply #6 on: September 13, 2023, 03:00:28 am »
No. Just read what you need and ignore the rest...

q.

shimon

  • EA User
  • **
  • Posts: 65
  • Karma: +0/-0
    • View Profile
Re: Export preferences settings
« Reply #7 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



 

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 12670
  • Karma: +525/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Export preferences settings
« Reply #8 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

qwerty

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +387/-299
  • I'm no guru at all
    • View Profile
Re: Export preferences settings
« Reply #9 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.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 12670
  • Karma: +525/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Export preferences settings
« Reply #10 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

qwerty

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +387/-299
  • I'm no guru at all
    • View Profile
Re: Export preferences settings
« Reply #11 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.