Returns the active page. The active page is the one displayed in the editor and on which you can work.

syntaxSyntax:
DlxGraphixDocument.GetActivePage()

Return Value

Returns the object corresponding to the page. Call the IsValid() method to determine if the object is valid.

Example

  Copy codeCopy code
var doc = DlxApp.GetJob().FindDocument("Examples Sch", DlxApp.DOCTYPE_SCHEMATIC);
if (doc.IsValid())
{
  var p = doc.GetActivePage();
  DlxApp.Printf("The active page is %s", p.GetName());
}

See also