How to: Repaint Automation


Topic:

Repaint Automation


Class hierarchy:

IPCsApplication


Description:

If changes have been made to a project that is a visual change, then repaint the project by calling: .Redraw


Sourcecode:
[+] Delphi
uses DPSCAD_TLB;

begin
  {check if we're connected to Automation}
  if CheckConnection() then    // (See function here)
    begin
      {repaint project}
      PCsApplication.Redraw;
    end;
end;

[+] Visual Basic
'check if we're connected to Automation
If CheckConnection() Then   // (See function here)
  'repaint project
  PCsApplication.Redraw()
End If

[+] C#
/*check if we're connected to Automation*/
if (CheckConnection())   // (See function here)
{
  /*repaint project*/
  PCsApplication.Redraw();
}