ScrImportLayerStackupXML

Imports a layer stackup XML file.
UI Command:   Import > Layer Stackup XML.
Syntax:   obj.ScrImportLayerStackupXML(<filePath>)
Parameters:  

BSTR filePath (full path)

Return Value:  

BOOL

  • 0 – Failure
  • 1 – Success
VB Example:  

Dim app, doc, outcome, objShell

Set objShell = WScript.CreateObject("WScript.Shell")

Set app = CreateObject("SIwave.Application.2024.2")

Set doc = app.OpenProject(objShell.CurrentDirectory + "\test_project.siw")

outcome = doc.ScrImportLayerStackupXML(objShell.CurrentDirectory + "\layer_stackup.xml")

IPY Example:  

oDoc.ScrImportLayerStackupXML('C:/StackupFiles/stack1.xml')