To get the page property flags.
Return Value
Returns a combination of the following values:
Value |
Meaning |
DlxApp.PAGEFLAGS_SINGLECOMPONENT |
Enable this option to indicate that all the symbols defined on the page represent a single component.
You can dedicate an entire page to a single component by bringing together in it all the symbols that represent it.
In this case, the name of the symbol is the name of the page. |
DlxApp.PAGEFLAGS_IGNORETHISPAGE |
Enable this option to exclude the page from a library or schematic. |
DlxApp.PAGEFLAGS_CONTINUEFROMPREVIOUS |
Use this option to merge two or more pages. Symbols are shown on the same page as the library bar. |
DlxApp.PAGEFLAGS_IPCFOOTPRINT |
Enable this option if the page defines the footprints corresponding to the three levels of PCB classification based on component density.
See Drawing a three-level footprint. |
Example
|
Copy 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 page = doc.GetActivePage();
if (page.GetFlags() & DlxApp.PAGEFLAGS_IGNORETHISPAGE)
{
DlxApp.Printf("Skipped the page %s", page.GetName());
}
}
|
See also