Book a Demo

Author Topic: Code generation defaults and scripting  (Read 4120 times)

gmpff

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Code generation defaults and scripting
« on: November 27, 2003, 03:23:16 am »
Hi,

Each time I generate code from EA, I follow the same canned sequence of steps: select "Overwrite code", click "Select all", click "Generate code" and then click "Yes" about 20 times (depending on the number of files) when prompted for "Overwrite existing file".

Although this works in principle, it is time consuming, error prone (I might click "No" by accident) and doesn't scale to large projects (number of clicks asymptotically linear w.r.t. number of files). I would therefore be grateful if there is a way to script or automate this whole process (if I could generate code without opening EA it would be insane). Second prize would be if EA remembered the choices I made last time when I generated code.

I couldn't find anything relating to code generation in the automation and scripting interface docs. What am I missing ?

Any ideas ?

palatum

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Code generation defaults and scripting
« Reply #1 on: November 27, 2003, 08:35:09 pm »
I don't know which version you are using. I don't meet the problem via EA 3.60.653

mbc

  • EA User
  • **
  • Posts: 237
  • Karma: +1/-0
  • Embedded software developer
    • View Profile
Re: Code generation defaults and scripting
« Reply #2 on: November 28, 2003, 03:45:11 am »
Maybe "Tools - Options - Generation - Replace (overwrite) existing source file" is the setting that you are looking for.

Mikkel

gmpff

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Code generation defaults and scripting
« Reply #3 on: December 01, 2003, 04:56:31 am »
Thanks for the responses. I wouldn't call the behaviour a "problem" but rather just a bit of an iriitation on the user interface side. This is probably due to me being more used to a Unix environment, where scripting is big, allowing most tasks to be automated.

Even if I configure it to always overwrite (and never sync), it still wants me to confirm that I want the files overwritten.