Book a Demo

Author Topic: Duplicate code generated  (Read 2915 times)

revdev

  • EA User
  • **
  • Posts: 27
  • Karma: +0/-0
  • Love this stuff.
    • View Profile
Duplicate code generated
« on: September 01, 2006, 06:21:22 am »
Hi.  I am generating code in C++ at the class and package levels.  Each time I generate, the code is appended to the .cpp and .h files, leaving me the same number of copies of the class (in the code) as the number of times I have generated code.

Any ideas?
re-Vision Development

thomaskilian

  • Guest
Re: Duplicate code generated
« Reply #1 on: September 01, 2006, 09:52:18 am »
You could choose the Overwrite Code in the code gen options. There might be another solution - anybody else?

revdev

  • EA User
  • **
  • Posts: 27
  • Karma: +0/-0
  • Love this stuff.
    • View Profile
Re: Duplicate code generated
« Reply #2 on: September 01, 2006, 02:01:28 pm »
If I use "overwrite" then I lose any code I may have typed in after the previous generate.  I would like to do some round-tripping here.
re-Vision Development