uses DPSCAD_TLB;
var
PCsApplication : IPCsApplication;
ADocument : IPCsDocument;
AFilename : string;
begin
PCsApplication := coApplication.Create();
AFilename := 'C:\Users\martin\Documents\NewProject.PRO';
{set the filename of the project}
ADocument := PCsApplication.Documents.Add('',AFilename);
{saves the project}
ADocument.SaveAs(AFilename);
{set title of project}
ADocument.Drawing.Title := 'Title of the Project';
end;
var
PCsApplication : IPCsApplication;
ADocument : IPCsDocument;
AFilename : string;
begin
PCsApplication := coApplication.Create();
AFilename := 'C:\Users\martin\Documents\NewProject.PRO';
{set the filename of the project}
ADocument := PCsApplication.Documents.Add('',AFilename);
{saves the project}
ADocument.SaveAs(AFilename);
{set title of project}
ADocument.Drawing.Title := 'Title of the Project';
end;