Book a Demo

Author Topic: Export Code Generation Settings  (Read 4758 times)

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Export Code Generation Settings
« on: November 13, 2013, 11:32:00 pm »
Hello,

is there a possibility to export the code generation settings from Tools, Options.

I haven't seen an entry in Reference Data. Have I missed something?

Thanks a lot,

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

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Export Code Generation Settings
« Reply #1 on: November 13, 2013, 11:35:51 pm »
Most of Tools/Options is stored in the registry: HKEY_CURRENT_USER\Software\Sparx Systems\EA400\EA\OPTIONS

q.

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Export Code Generation Settings
« Reply #2 on: November 14, 2013, 07:31:46 am »
Hi,

I think the general Code generation information is stored somewhere in the repository database. Tomorrow I will check on this. May be I find something in your valuable InsideEA book.

Thanks a lot!

Helmut

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

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Export Code Generation Settings
« Reply #3 on: November 14, 2013, 08:14:10 am »
You won't find anything there :( It seems that al least some options are stored per repository. But on the fly I could not find them. Twisty little maze of passages  - here I am.

q.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Export Code Generation Settings
« Reply #4 on: November 14, 2013, 08:21:59 am »
Argh. It's in t_genopt. I usually do not dump that table as EA raises an exception with SQLQuery (IIRC due to UTF8 quirks). So if you want to read that table you either need to clean it or you must use a native DB driver access to it. You can however read it with the SQL builder.

q.

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Export Code Generation Settings
« Reply #5 on: November 14, 2013, 05:09:53 pm »
Hello,

thanks a lot. With your advice I found the settings I was looking for.

By the way: In my environment it works with EA and of course with native SQL.

To identify that the values are inside the repository I simple made a text search in the *.eap file.

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

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Export Code Generation Settings
« Reply #6 on: November 14, 2013, 08:45:59 pm »
Quote
To identify that the values are inside the repository I simple made a text search in the *.eap file.
Smart :-)

q.