ScrImportCpaSimulationOptions

Loads an SIwave Simulation Settings file (*.sws).
UI Command:   Click Simulation. From the CPA area, select Options. From the options window, click Import Settings.
Syntax:   obj.ScrImportCpaSimulationOptions(<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")

doc.ScrImportCpaSimulationOptions (objShell.CurrentDirectory + "\simulation_settings.sws")

doc.ScrSaveProjectAs(objShell.CurrentDirectory + "\test_project_w_new_sim_settings.siw")

IPY Example:  

oDoc.ScrImportCpaSimulationOptions('C:/Path/simulation_settings.sws')