Book a Demo

Author Topic: Accessing options  (Read 4551 times)

gfranz

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Accessing options
« on: April 16, 2013, 04:16:57 pm »
Hello,

currently I cannot find the object which corresponds to the -> Tools -> Options window in EA. How can I set this options in a script?

Thanks

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Accessing options
« Reply #1 on: April 16, 2013, 04:54:22 pm »
Hello,

in my opinion the options are stored in the registry:
HKEY_CURRENT_USER\Software\Sparx System\EA400\EA

Therefore the options are stored for a user.

I don't know an EA API to manipulate all the options stored.

Best regards,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

gfranz

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Re: Accessing options
« Reply #2 on: April 16, 2013, 05:01:42 pm »
Quote
Hello,

in my opinion the options are stored in the registry:
HKEY_CURRENT_USER\Software\Sparx System\EA400\EA

Therefore the options are stored for a user.

I don't know an EA API to manipulate all the options stored.

Best regards,

Helmut

Thanks a lot, Helmut

Do you also know, when EA reads this options? Everytime an internal methods accesses this information? I can change them before calling a method, but when EA does not read them again, it will have no effect.
« Last Edit: April 16, 2013, 05:04:46 pm by gfranz »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Accessing options
« Reply #3 on: April 16, 2013, 06:41:10 pm »
The registry is only read once on startup (for the few but important options I ever checked). To make changes work you need to restart EA. It would probably be nice to see an API call ReloadOptions.

q.