Skip to content

Instantly share code, notes, and snippets.

@jmmauricio
jmmauricio / pf_ds_py_run_save_9bus_sys
Created June 13, 2015 18:41
PowerFactory DigSILENT Python Script to load flow, set variables to save, set event, initialize, run and save results to a txt file
import sys
sys.path.append(r"C:\DigSILENT15p1p7\python")
# import PowerFactory module
import powerfactory
# start PowerFactory in engine mode
app = powerfactory.GetApplication()
user = app.GetCurrentUser()