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