Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: dgoetz on January 13, 2024, 02:50:26 am

Title: Read author from preferences automatically
Post by: dgoetz on January 13, 2024, 02:50:26 am
Hello EA users,

is it possible to the read the author as configured in the preferences via the SDK?

Dieter
Title: Re: Read author from preferences automatically
Post by: Geert Bellekens on January 13, 2024, 03:06:17 am
You can read that from the registry I think.
Probably here somewhere: HKEY_CURRENT_USER\Software\Sparx Systems\EA400\EA\OPTIONS

Geert
Title: Re: Read author from preferences automatically
Post by: dgoetz on January 15, 2024, 07:34:25 pm
Hi Geert,
thanks for your reply. I remembered the storage location on my old computer, but have not found anything there on my new computer

The behavior of EA is like this.
- after the first installation of Enterprise Architect no information about Author, Phase and Version is saved in the registry
- only when you change Author, Phase and Version for the first time, then EA adds the entry in the registry

Storage location in the Registry:
key: Computer\HKEY_CURRENT_USER\SOFTWARE\Sparx Systems\EA400\EA\OPTIONS
Author -> AUTHOR
Phase -> DEF_PHASE
Version -> DEF_VERSION
Title: Re: Read author from preferences automatically
Post by: qwerty on January 15, 2024, 09:37:18 pm
It's probably only in there if you changed it once. Else EA assumes defsaults.

q.