Author Topic: Getting open diagrams to really refresh  (Read 3375 times)

bittercoder

  • EA User
  • **
  • Posts: 30
  • Karma: +0/-0
  • .Net developer
    • View Profile
Getting open diagrams to really refresh
« on: January 15, 2007, 03:49:37 pm »
I'm trying to get EA to refresh open diagrams completely...

Basically I have linked elements on my diagram with alternative images assigned, and I'm updating these alternative images (via SQL) and want to flush the changes through to any open diagrams with instances of said elements...

I've already tried using:

 Repository.RefreshOpenDiagrams(true);

Which appears purpose built for my needs, but it doesn't refresh the diagrams - is there any sure fire way to force open diagrams to completely reload/refresh themselves?

Gary_Barnes

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Getting open diagrams to really refresh
« Reply #1 on: January 18, 2007, 04:25:15 pm »
Try:
Repository.ReloadDiagram(int DiagramID)

It has been working for me.
Give a hard job to a lazy man,
He will find an easy way to do it.

bittercoder

  • EA User
  • **
  • Posts: 30
  • Karma: +0/-0
  • .Net developer
    • View Profile
Re: Getting open diagrams to really refresh
« Reply #2 on: January 19, 2007, 02:53:42 pm »
Cool, I'll give it a go - hopefully it fails silently if the diagram isn't loaded at all (because it may not be in my case)