Gets the view identified by the iterator, then sets the iterator to the next view in the page.

syntaxSyntax:
DlxPage.GetNextView(iterator)

Parameters

Parameter Description
iterator A DlxIterator value returned by a previous GetNextView, GetViewIterator, or other function call.

Return Value

Returns the DlxView corresponding to the iterator. Call the IsValid() method to determine if the view is valid.

Example

  Copy codeCopy code
var prj = DlxApp.GetJob().GetProject("Example PCB");
if (!prj.IsValid())
  prj = DlxApp.GetJob().NewProject("Example PCB");
var doc = prj.GetDocument("Examples PCB", DlxApp.DOCTYPE_PCB);
if (!doc.IsValid())
{
  doc = prj.NewDocument("Examples Pcb", DlxApp.DOCTYPE_PCB);
  doc.SetPageFormat("A4", false);
  var page = doc.NewPage("PCB", 0, true);
  page.LoadLayerStack("2 layer pcb stackup.clxlys");
  page.DrawBoard(new DlxRect(10, 10, 290, 200));
  page.SelectView("Draw Copper From Top");
}
if (doc.IsValid() && doc.Activate())
{
  var page = doc.FindPage("PCB");
  if (page.IsValid() && doc.SelectPage(page))
  {
    DlxApp.Printf("The %s page has %i views.", page.GetName(), page.GetViewCount());
    var i = page.GetViewIterator();
    while (i.IsValid())
    {
      var view = page.GetNextView(i);
      DlxApp.Printf("view: %s", view.GetName());
    }
  }
}

See also