Call this function to specify the name of the page.

syntaxSyntax:
DlxPage.SetName(name)

Parameters

Parameter Description
name The name of the page.

Return Value

If the page name is set correctly it returns true otherwise it returns false.

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 p = doc.GetActivePage();
  DlxApp.Printf("The active page name is %s", p.GetName());
  p.SetName("new page name");
  DlxApp.Printf("The active page new name is %s", p.GetName());
}

See also