Book a Demo

Author Topic: Any better way to set file name of class?  (Read 3002 times)

Asperamanca

  • EA User
  • **
  • Posts: 91
  • Karma: +0/-0
    • View Profile
Any better way to set file name of class?
« on: June 14, 2011, 05:17:22 pm »
Hi,

I'll need to generate code for (probably) hundreds of classes over the next months.
Every time, I have to enter the code generation dialog, hit the browse button, traverse multiple folders(the dialog does not remember the last folder I was in), and manually correct the file name to lower case (as per our coding standards).

Is there an easier way to do this?

abruckner

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Re: Any better way to set file name of class?
« Reply #1 on: June 15, 2011, 05:16:19 pm »
EA does save the last target language and the last location per file.
the element's properties are called Genfile and Gentype. both are strings.

one solution would be:
write a script running through all packages and elements setting at least the Genfile property. when it comes to code-generation, check the option 'Retain existing file paths.'

another one was to generate the files as they are, but then use a bulk file renamer. I'm pretty sure, you will find a lot of freeware in the net.