Book a Demo

Author Topic: Roundtripping with e.a not posible ?  (Read 2364 times)

kenneth.nielsen

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
  • just a dude
    • View Profile
Roundtripping with e.a not posible ?
« on: February 06, 2006, 06:00:43 am »
Hy
I've got some old code (c++ and c#) that i've wanted an uml model of and extend the uml model to generate code. Ive done that sucessfully before with rational rose. And I wanted to see if e.a. can deliver the service I want, which is to use an UML/tool with new imperovements to existing code. I did these steps, but kept running a problem with generating source files, that had functionality implemented in them. - it was overwritten or copied to later in the source file. I've tried with vs 2005 NET and teh MDG link thingy.
steps to do
a) tried to reverse engineer source code into e.a.
b) I've modified the model. ( i.e add an variable )
c) generate the souce file again.
- the file changed and the existing information in the file is gone/overwritten/moved. Can E.a. do this so the file compiles with out problems?

I think rational rose had the same problem before the version released in 98, if i remeber correctly. - they introduce a guid associated with each class/function/variable and that solved the problem.

how do i make sure that i dont sreew up my existing code base?
ketnnneht

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8090
  • Karma: +118/-20
    • View Profile
Re: Roundtripping with e.a not posible ?
« Reply #1 on: February 06, 2006, 01:08:31 pm »
Hi,

It is possible to round trip in EA, and your steps sound ok.

We don't use GUIDs, instead attributes and operationsare identified by their signature.  We then have a dialog that can be enabled when source code elements aren't found in the model.  For each attribute/operation found in the code but not in the model you have the choice of ignoring it, deleting it or associating it with a model attribute/operation.

To enable this dialog open the options dialog (Tools | Options) to the Attribute/Operations page and check 'On forward synch, prompt to delete code features not in model.'

kenneth.nielsen

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
  • just a dude
    • View Profile
Re: Roundtripping with e.a not posible ?
« Reply #2 on: February 08, 2006, 02:50:31 am »
thanks, ill try that