Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Tehila1 on July 30, 2014, 09:54:57 pm

Title: Refresh Diagram
Post by: Tehila1 on July 30, 2014, 09:54:57 pm
I change diagram properties programmatically, updating t_diagram table,
at the EA_OnPostOpenDiagram event.
The changes are set as expected, but can be seen only in case I close the diagram and open it again.

Using diagram.Update() doesn't change the diagram view.

Any other ideas?
Title: Re: Refresh Diagram
Post by: ZuluTen on July 30, 2014, 10:38:01 pm
I think you need to use the 'ReloadDiagram(DiagramID)' instruction.
Title: Re: Refresh Diagram
Post by: Tehila1 on July 30, 2014, 11:04:38 pm
Quote
I think you need to use the 'ReloadDiagram(DiagramID)' instruction.

Thanks, works great!
The RefreshOpenDiagrams (boolean FullReload) method gave me the same result.