Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: cnj_mike on July 03, 2006, 03:44:24 pm

Title: Setting file extension for custom code generator
Post by: cnj_mike 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
Title: Re: Setting file extension for custom code generat
Post by: «Midnight» 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