Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: bittercoder on January 15, 2007, 03:49:37 pm

Title: Getting open diagrams to really refresh
Post by: bittercoder 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?
Title: Re: Getting open diagrams to really refresh
Post by: Gary_Barnes on January 18, 2007, 04:25:15 pm
Try:
Repository.ReloadDiagram(int DiagramID)

It has been working for me.
Title: Re: Getting open diagrams to really refresh
Post by: bittercoder 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)