Author Topic: Read author from preferences automatically  (Read 2484 times)

dgoetz

  • EA User
  • **
  • Posts: 35
  • Karma: +0/-0
    • View Profile
Read author from preferences automatically
« 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

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Read author from preferences automatically
« Reply #1 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

dgoetz

  • EA User
  • **
  • Posts: 35
  • Karma: +0/-0
    • View Profile
Re: Read author from preferences automatically
« Reply #2 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

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Read author from preferences automatically
« Reply #3 on: January 15, 2024, 09:37:18 pm »
It's probably only in there if you changed it once. Else EA assumes defsaults.

q.