How can I automatically export all plots available in a project?

Category:
Scripting
Answer

You can write a script that can do this for you. PowerFactory supports two scripting languages Python and DPL. Refer to the User Manual for more information on this.

Here you will find just a simple example of a Python scripts that can assist you in this task.

import powerfactory

app=powerfactory.GetApplication()

obj=app.GetGraphicsBoard()

VIPages=obj.GetContents('*.SetVipage')

for i in VIPages[0]:

   obj.Show(i)

   Page_name=i.loc_name

   File_name=('D:\\Users\\PowerFactory\\%s' %(Page_name))

   obj.WriteWMF(File_name)

Back