Book a Demo

Author Topic: "Syncronize Model with Code" breaks the  (Read 7273 times)

dmini

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
"Syncronize Model with Code" breaks the
« on: February 07, 2008, 05:28:31 am »
Hi,
When I try to sync model with code from context menu or just F7 the current diagram breaks, looks like EA applies the default layout to the diagram (EA 7.0/818, C# source). Is there a way to fix this?

Please help...


rabra

  • EA User
  • **
  • Posts: 50
  • Karma: +0/-0
    • View Profile
Re: "Syncronize Model with Code" breaks
« Reply #1 on: February 07, 2008, 06:14:54 am »
I am not sure if this really is your problem, but - did you save your diagram first before reverse engineer?
When I did not and I did synchronize Model with code The diagram really was a chaos...

dmini

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: "Syncronize Model with Code" breaks
« Reply #2 on: February 07, 2008, 07:18:00 am »
Oh, that was exactly my problem. I was doing model sync while the diagram wasn't saved, and apparently EA updates last saved model during sync. Ideally EA should detect "dirty" state of the diagram and update the in-memory snapshot during model sync, but just saving the model before synchronizing is an easy workaround.

Thank you!

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: "Syncronize Model with Code" breaks
« Reply #3 on: February 07, 2008, 02:37:02 pm »
I think this problem of losing unsaved diagram changes on reverse code sync might have been fixed in EA 7.1.  If you have access to the EA 7.1 beta, try producing this same problem with it.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: "Syncronize Model with Code" breaks
« Reply #4 on: August 19, 2008, 09:11:52 pm »
Valya,

[edit]I started a new thread for this and suggest some possibilities there.

David[/edit]

I posted two possible solutions to this when I read your first post. Since then this post makes three!

I'll delete my earlier reply, and post it again when you've reduced your posts to one thread. That way the rest of us can see the entire thread in one place.

Hopefully the rest of the potential respondents will do the same.

I do suggest that you start a new thread - after you delete all copies of this post. That way we'll all know what the thread is talking about. This will also clean up the three (so far) threads you've posted to, so that they are each focused on one topic.


David
« Last Edit: August 20, 2008, 03:11:38 am by Midnight »
No, you can't have it!

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: "Syncronize Model with Code" breaks the
« Reply #5 on: August 20, 2008, 11:47:06 pm »
Valya,

Before you try the XMI, read the edit to my post in the other thread!

David
No, you can't have it!