How can I properly terminate PowerFactory from DPL?

Category:
Scripting
Answer

A running PowerFactory instance can be terminated via DPL by using the ComExit command.

Example:

object cmd;
cmd = GetFromStudyCase('ComExit');
cmd.Execute();
Back