API Reference Guide
Learn how to access the HyperStudy Python API including online help, examples.
Launch the Python Console in HyperStudy
- Click F4.
Figure 1.
or press
Running Python Scripts
A Python script can be executed by any of the following three methods:
- Running HyperStudy executables with
-pyfile.
hst.exe or hstbatch.exe -pyfile myscript.py.
- Use the standard Python function in the
console.
sys.path.insert ("C:/Users/myscript_repository") import myscript
- HyperStudy as a Python
module.
#myscript.py import alt.hst.api.hstapp as hstapp app = hstapp.HstBatchApp() app.start() … app.close() #end of file hstpy.bat myscript.py
HyperStudy API Online Help
The basics of how to use the HyperStudy Python API and examples are covered in the HyperStudy API online help.