OpenCaseType Function
The OpenCaseType function will load a PowerWorldâ Simulator load flow file into the Simulator Automation Server. This is similar to opening a file using the File > Open Case menu option in Simulator.
Function Prototype
OpenCaseType(FileName, FileType, Options)
Parameter Definitions
FileName : String The name of the case file to be loaded into the Simulator Automation Server. This string includes the directory location and full file name.
FileType : String The type of case file to be loaded. It can be one of the following strings: PWB, PTI, PTI23,..., PTI35, GE, GE14,..., GE23, CF, AUX, UCTE, AREVAHDB
Options : Variant Optional parameter indicating special load options for PTI and GE file types. If specified it should be an array of strings for the specified parameters or a single string if only the first parameter is specified.
PTI RAW Format Options
LoadTransactions
YES - load transactions when opening case
NO - do not load transactions when opening case
DEFAULT - follow default behavior
StarBus
NEAR - star buses are numbered starting after the near bus number
MAX - star buses are numbered starting with the maximum bus number
VALUE - star bus numbering will start at value
GE EPC Format Options
MSLine
MAINTAIN - maintain multi-section lines
EQUIVALENCE - equivalence multi-section lines
VarLimDead
Number - this is the var limit deadband
PostCTGAGC
YES - populate the generator field Post-CTG Prevent Response based on the EPC file's generator base load flag
Output
OpenCaseType returns only one element in Output—if the file cannot be found or an error occurs while reading the file.