Author Topic: Setting file extension for custom code generator  (Read 2506 times)

cnj_mike

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Setting file extension for custom code generator
« on: July 03, 2006, 03:44:24 pm »
hi!  sorry i can't seem to find this in the documentation...

i've written a custom code generator and i want to be able to set the file extension used when i generate the package.  is there any way to do that that doesn't involve setting the filenames one class at a time?

thx
m

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Setting file extension for custom code generat
« Reply #1 on: July 03, 2006, 04:31:54 pm »
It's been a while since I looked Mike, but I think the options for file extensions are tied to the code generation language.

These would be found in the Tools / Options dialogs. There is usually only one file extension available, and that is usually for classes. Individual languages may be different; the only exception I can think of is C++, and if I remember Sparx' answers to other questions in this forum this is hard-wired into EA and not possible for other languages.

Perhaps you can somehow capture the output file name, with extension, and change it somehow in your script. Otherwise, I suggest a small automation program, either from within EA or outside.

David
No, you can't have it!