uses DPSCAD_TLB;
const
MoveRight = 10;
var
PCsApplication : IPCsApplication;
Page : IPCsPage;
Rect : TPCsRect;
i : integer;
begin
PCsApplication := coApplication.Create();
Page := PCsApplication.ActiveDocument.ActivePage;
{running through all symbols on page}
for i := 0 to Page.Symbols.Count - 1 do
begin
Rect := PCsApplication.Symbols[i].GetRect(rt_Raw);
{move symbol 10 units to the right}
Rect.Left := Rect.Left + MoveRight;
Rect.Right := Rect.Right + MoveRight;
end
end;
const
MoveRight = 10;
var
PCsApplication : IPCsApplication;
Page : IPCsPage;
Rect : TPCsRect;
i : integer;
begin
PCsApplication := coApplication.Create();
Page := PCsApplication.ActiveDocument.ActivePage;
{running through all symbols on page}
for i := 0 to Page.Symbols.Count - 1 do
begin
Rect := PCsApplication.Symbols[i].GetRect(rt_Raw);
{move symbol 10 units to the right}
Rect.Left := Rect.Left + MoveRight;
Rect.Right := Rect.Right + MoveRight;
end
end;