Returns the active page. The active page is the one displayed in the editor and on which you can work.
Syntax: |
---|
DlxGraphixDocument.GetActivePage() |
Return Value
Returns the object corresponding to the page. Call the IsValid() method to determine if the object is valid.
Example
Copy 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());
}
|