Book a Demo

Author Topic: Synchronize destroys layout of surrounding classes  (Read 3255 times)

Asperamanca

  • EA User
  • **
  • Posts: 91
  • Karma: +0/-0
    • View Profile
Synchronize destroys layout of surrounding classes
« on: April 22, 2013, 05:43:39 pm »
I have a class diagram showing a few classes and their relations. After I have taken the time to manually resize the classes, move them to good spots and move the relation arrows where I want them, I "synchronize with source code" for one class.

Suddenly all my layout changes are undone.

How can I prevent this?

EDIT: It's not just recent changes that are undone. It seems all of my manual layout is simply thrown in the bin, and the diagram is completely laid out according to some algorithm.
« Last Edit: April 22, 2013, 05:45:21 pm by Asperamanca »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Synchronize destroys layout of surrounding cla
« Reply #1 on: April 23, 2013, 08:40:50 am »
There's an option for layout of diagrams after source code import.

Also make sure that you save the diagram before you do your synch.

Asperamanca

  • EA User
  • **
  • Posts: 91
  • Karma: +0/-0
    • View Profile
Re: Synchronize destroys layout of surrounding cla
« Reply #2 on: April 23, 2013, 08:48:59 pm »
I have the option Tools->Options->Source code engineering->Auto layout diagram on import set to "On new diagram".

However, I was working on an existing diagram, so I don't think auto layout should have taken place.

I might have forgotten to save before importing. A warning in this case would be great.