uses DPSCAD_TLB;
var
ADocument : IPCsDocument;
APage : IPCsPage;
AArc : IPCsArc;
Point3D : TPCsPoint3d;
begin
{check if we're connected to Automation}
if CheckConnection() then // (See function here)
begin
{active project}
ADocument := PCsApplication.ActiveDocument;
{active page}
APage := ADocument.ActivePage;
{set position for circle}
Point3D.X := 50000;
Point3D.Y := 50000;
Point3D.Z := 0;
{set radius}
ARadius := 15000;
{set startangle}
AStartAngle := 900;
{set endangle}
AEndAngle := 2700;
{create circle}
AArc := APage.AArcs.Add(Point3D,ARadius,AStartAngle,AEndAngle);
{update drawing in Automation through IPCsApplication}
PCsApplication.Redraw;
end;
end;
var
ADocument : IPCsDocument;
APage : IPCsPage;
AArc : IPCsArc;
Point3D : TPCsPoint3d;
begin
{check if we're connected to Automation}
if CheckConnection() then // (See function here)
begin
{active project}
ADocument := PCsApplication.ActiveDocument;
{active page}
APage := ADocument.ActivePage;
{set position for circle}
Point3D.X := 50000;
Point3D.Y := 50000;
Point3D.Z := 0;
{set radius}
ARadius := 15000;
{set startangle}
AStartAngle := 900;
{set endangle}
AEndAngle := 2700;
{create circle}
AArc := APage.AArcs.Add(Point3D,ARadius,AStartAngle,AEndAngle);
{update drawing in Automation through IPCsApplication}
PCsApplication.Redraw;
end;
end;