Author Topic: Refresh Diagram  (Read 3174 times)

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
Refresh Diagram
« 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?

ZuluTen

  • EA User
  • **
  • Posts: 56
  • Karma: +0/-0
    • View Profile
Re: Refresh Diagram
« Reply #1 on: July 30, 2014, 10:38:01 pm »
I think you need to use the 'ReloadDiagram(DiagramID)' instruction.

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
Re: Refresh Diagram
« Reply #2 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.