Author Topic: Code Engineering Synchronisation  (Read 2229 times)

arafangion

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Code Engineering Synchronisation
« on: April 29, 2007, 04:32:24 pm »
I am reviewing Enterprise Architect (EA) for a large internal project with a view to produce UML diagrams for documentation purposes, with an eye to ease maintanance of the diagrams as time goes by (And as code changes).  For this large project, we do not want to display every single class, and EA does its job extremely well here, as we can import a large directory containing C# code, and have easily manipulated diagrams as a result.

The plan is that these diagrams can be moved about so they look good, and "unneccessary" classes removed.

However, while Code Engineering resynchronisation updates all the classes in the diagrams extremely well, it does not add any new classes that have since been added to the source code.

It is good that it does not re-add classes that have been removed from the diagram, what we want is to have EA automatically add classes that did not even exist the previous time Code Engineering was used.

Is this a bug, feature, or simply a feature that should be added? If this is a feature, I would appreciate an explaination.

Thankyou.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8079
  • Karma: +118/-20
    • View Profile
Re: Code Engineering Synchronisation
« Reply #1 on: April 30, 2007, 02:30:58 pm »
How are you importing your code?

In general if EA is adding classes to diagrams when reverse engineering I would expect it to update any classes already in the model and not add them to any diagrams (as you are seeing) but new classes will be created and inserted on a diagram (which diagram depends on type of import).

That you aren't getting classes added suggests that you are either using an 'Import Source Directory' with diagrams disabled, or the 'Synchronize Package Contents'.  The latter only updates the classes already in the model with the code by design.  If you want your model accurately reflecting the code then use Import Source Directory as this handles both new classes and removed classes.