Book a Demo

Author Topic: How to generate files different from classname  (Read 4266 times)

MREA

  • EA User
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
How to generate files different from classname
« on: October 29, 2012, 08:55:31 pm »
Hi
Is it possible to generate a Class Classname, that the outputfile is xyz.h instead of Classname.h?

because I wanna keep high/low lettre of classnames in the diagramm, but the filenames shall be in low letters

e.g. MyClass --> myclass.h

thanks

P.S. generate -->path--> save
after that the syncronisation do not work anymore
« Last Edit: October 29, 2012, 08:57:39 pm by EAIFM »
Support- Languages: German, English, French

SomersetGraham

  • EA User
  • **
  • Posts: 376
  • Karma: +1/-0
    • View Profile
Re: How to generate files different from classname
« Reply #1 on: October 29, 2012, 08:58:56 pm »
Hi
You can specify the filename on the Generate Code Dialog

HTH
Using V12

MREA

  • EA User
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Re: How to generate files different from classname
« Reply #2 on: October 29, 2012, 09:00:40 pm »
but than the code syncronisation do not work anymore
Support- Languages: German, English, French

SomersetGraham

  • EA User
  • **
  • Posts: 376
  • Karma: +1/-0
    • View Profile
Re: How to generate files different from classname
« Reply #3 on: October 29, 2012, 09:02:27 pm »
I just tested this and I can get synchronisation to work
Using V12

MREA

  • EA User
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Re: How to generate files different from classname
« Reply #4 on: October 29, 2012, 09:16:08 pm »
you right in an other project it works, so what could be the wrong setting?
Support- Languages: German, English, French

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How to generate files different from classname
« Reply #5 on: October 29, 2012, 11:03:06 pm »
I guess you should be more specific in what you're doing, what you expect and what actually happens.

q.

MREA

  • EA User
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Re: How to generate files different from classname
« Reply #6 on: October 29, 2012, 11:10:30 pm »
I've a class class. with attr and operations.

<<publicinterface>> CLASS
  |attr 1
  |_attr2...
  |_opt1
  |_opt2 ...

now I do generate
Path: ..... \class.h

so it works everything is fine, and the file name is class.h not CLASS.h
BUT
if I Generate again

the code looks like that
<<publicinterface>> CLASS
  |attr 1
  |_attr2...
  |_opt1
  |_opt2 ...

  |attr 1
  |_attr2...
  |_opt1
  |_opt2 ...

so what could be the reason for that?
there musst be a setting that has this effect on the classes
« Last Edit: October 29, 2012, 11:12:28 pm by EAIFM »
Support- Languages: German, English, French