Export the layer stack to a file on disk.

syntaxSyntax:
DlxPage.SaveLayerStack(fileName)

Parameters

Parameter Description
fileName The file name. If this string is empty, a dialog box appears where you can specify the file name.

Return Value

If the layer stack is saved correctly, it returns true, otherwise it returns false.

Example

  Copy codeCopy code
var doc = DlxApp.GetJob().FindDocument("Examples Pcb", DlxApp.DOCTYPE_PCB)
if (doc.IsValid() && doc.Activate())
{
  var page = doc.GetActivePage();
  var ok = page.SaveLayerStack("T\\pcb.clxlys");
  DlxApp.Printf(ok ? "Ok" : "Error");
}

See also