Call this function to get the name of the page.

syntaxSyntax:
DlxPage.GetName()

Return Value

Returns the name of the page.

Example

  Copy codeCopy code
var prj = DlxApp.GetJob().GetProject("Example Sch");
if (!prj.IsValid())
  prj = DlxApp.GetJob().NewProject("Example Sch");
var doc = prj.GetDocument("Examples Sch", DlxApp.DOCTYPE_SCHEMATIC);
if (!doc.IsValid())
{
  doc = prj.NewDocument("Examples Sch", DlxApp.DOCTYPE_SCHEMATIC);
  doc.SetPageFormat("A4", false);
}
if (doc.IsValid())
{
  var count = doc.GetPageCount();
  for (var i = 1; i <= count; i++)
  {
    DlxApp.Printf("%s", doc.GetPage(i).GetName());
  }
}

See also