Book a Demo

Author Topic: RefreshOpenDiagrams  (Read 3779 times)

gfranz

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
    • View Profile
RefreshOpenDiagrams
« on: May 07, 2013, 04:43:59 pm »
Hello,

I tried to show and hide structural elements. The script works, but I don't see the changes until I save and reopen the diagram.

Repo.RefreshOpenDiagrams(false) does not work, because it does not see the added diagram object. It is only in the database. And Repo.RefreshOpenDiagrams(true) will discard all user changes and reload the diagram.

I'm afraid there is no seamless way to work with user changes, script changes and the undo history, or is it?

Thanks!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: RefreshOpenDiagrams
« Reply #1 on: May 07, 2013, 05:34:12 pm »
Not really. Before certain operations you should ask the user to save changes or you simply force it. Often this is a PITA but it's very unlikely that EA will be improved here.

q.

gfranz

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Re: RefreshOpenDiagrams
« Reply #2 on: May 07, 2013, 10:44:52 pm »
Thanks a lot!

Really a pity...