09.03.2013 Views

Simulator 16 User Guide - PowerWorld

Simulator 16 User Guide - PowerWorld

Simulator 16 User Guide - PowerWorld

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Script Oneline Actions<br />

OpenOneLine ("filename<br />

",<br />

CloseOneLine ("Oneline<br />

Name");<br />

SaveOneline ("filename<br />

",<br />

ExportOnelineAs ("filename<br />

ShapeFile<br />

",<br />

LoadAXD ("filename<br />

",<br />

©2011 <strong>PowerWorld</strong> Corporation<br />

"view", FullScreen, Show<br />

Full);<br />

"Oneline<br />

Name",<br />

"Oneline<br />

Name",<br />

"Oneline<br />

Name",<br />

OpenOneline("filename", "view", FullScreen);<br />

507<br />

SaveFileType);<br />

"ShapeFileExportDescri<br />

ptionName",<br />

CreateIfNotFound);<br />

UseLo<br />

nLat,<br />

PointLoc<br />

ation);<br />

Use this action to open a oneline diagram. This can only be used in SimAuto and cannot be used to<br />

actually view a oneline. This action is most useful when wanting to save a oneline diagram in a<br />

different file format.<br />

"filename": The file name of the oneline diagram to open.<br />

"view": The view name that should be opened. Pass an empty string to denote no specific<br />

view.<br />

FullScreen: Set to YES or NO. YES means that the oneline diagram will be opened in full screen<br />

mode. If this parameter is not specified, then NO is assumed.<br />

ShowFull: Optional parameter. Set to YES to open the oneline and apply the Show Full option.<br />

Set to NO to open the oneline and leave the oneline as is. Default is NO if not specified.<br />

CloseOneline("OnelineName");<br />

Use this action to close an open oneline diagram without saving it. If the name is omitted, the last<br />

focused oneline diagram will be closed.<br />

"OnelineName": The name of the oneline diagram to close.<br />

SaveOneline("filename", "OnelineName", SaveFileType);<br />

Use this action to save an open oneline diagram to a file.<br />

"filename": The path and file name of the file to save.<br />

"OnelineName": Name of the open oneline to save.<br />

SaveFileType: Type of file to save. Valid options are PWB, PWB5, PWB6, PWB7. PWB8, PWB9,<br />

PWB10, PWB11, PWB12, PWB13. If omitted, PWB, which is the most recent version, will be<br />

assumed.<br />

ExportOnelineAsShapeFile("filename", "OnelineName",<br />

"ShapeFileExportDescriptionName", UseLonLat, PointLocation);<br />

Use this action to save an open oneline diagram to a shapefile.<br />

"filename": The file name of the shapefile to save.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!