Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Save your project before Solve or Update.


  2. Run the command as follows:

    Code Block
    languagebash
    runwb2 -B -F WorkbenchProjectFile -R WorkbenchScriptFile &


    It will execute the specified script, and shut down at the completion of script execution. Here is a sample script named as test.wbjn (note: can be generated by record journal in workbench):

...

SetScriptVersion(Version="20.2.221")

system1 = GetSystem(Name="FFF")
solutionComponent1 = system1.GetComponent(Name="Solution")
solutionComponent1.Update(Force=True)

Save(Overwrite=True)

exit

Note: With Force=True, the simulation continues from previous simulation. For a design point project, replace Update() lines 4-6 by UpdateAllDesignPoints() 

...