Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to "run automation file" through a python instruction (API)?

PSSE_PATH = r'C:\Program Files (x86)\PTI\PSSE32\PSSBIN'

sys.path.append(PSSE_PATH)

os.environ['PATH'] += ';' + PSSE_PATH

import psspy

psspy.psseinit(0)

psspy.case(str(archivo_sav.name))

Here: "Run Automation File with python API"

psspy.save(os.path.join(Ruta,r"Archivo_prueba.sav"))

psspy.close_powerflow()

click to hide/show revision 2
No.2 Revision

How to "run automation file" through a python instruction (API)?

PSSE_PATH = r'C:\Program Files (x86)\PTI\PSSE32\PSSBIN'

(x86)\PTI\PSSE32\PSSBIN' sys.path.append(PSSE_PATH)

sys.path.append(PSSE_PATH)

os.environ['PATH'] += ';' + PSSE_PATH

PSSE_PATH import psspy psspy.psseinit(0)

import psspy

psspy.case(str(archivo_sav.name))

psspy.psseinit(0)

psspy.case(str(archivo_sav.name))

Here: #Here: "Run Automation File with python API"

API" psspy.save(os.path.join(Ruta,r"Archivo_prueba.sav"))

psspy.save(os.path.join(Ruta,r"Archivo_prueba.sav"))

psspy.close_powerflow()

psspy.close_powerflow()