Book a Demo

Author Topic: Removing elements when generating code  (Read 3388 times)

Rinaldo

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Removing elements when generating code
« on: October 09, 2008, 02:07:13 am »
Hi.

I created a class on my EA project with one method and one attribute. Then I clicked the Generate Code option to create a file with my VB.NET code. All worked ok.

After that, I removed the attribute from my class on my EA project and generated the code again. The attribute was not removed from the generated code. I tried again, this time removing the method, bu the code keeps the method when is generated.

Is this by design? I think it should not be, since this way I can't trust this Generate Code option to create my classes. If I am right, this option only appends new elements to the code but does not remove old ones.

Can anyone confirms that behaviour?

Regards,
Rinaldo
Regards,
Rinaldo

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Removing elements when generating code
« Reply #1 on: October 09, 2008, 05:50:44 am »
Check your options regarding code synchronization. If tweaking these does not solve the problem then I suggest you submit a bug report to Sparx.
No, you can't have it!

Takeshi K

  • EA User
  • **
  • Posts: 632
  • Karma: +43/-1
    • View Profile
    • Sparx Systems Japan
Re: Removing elements when generating code
« Reply #2 on: October 09, 2008, 06:09:56 am »
Hi Rinaldo,

If you enable the 'On forward synch, prompt to delete code features not in model' option, you can specify to delete the attributes.

--
t-kouno
--
t-kouno