How can I export a result file using a DPL script?

Category:
Scripting
Answer

The attached project includes a DPL script that writes a result file and then export it into a comma separated values (csv) file.

The result object is defined inside the DPL command. The scaling factor of the loads is changed between 0 and 1, a load flow calculation is executed for every case, the active and reactive power of the loads are written on the result file.

To use the script is necessary to define the folder where the result file will be exported. The path is defined on the Basic Options page of the DPL command, the default path is "c:\temp".

Back