just to end this, Mario:
PS is currently not ready to be remotecontrolled like that.
Many settings, that one usually has to do before opening a study, cannot be set through API. E.g. the sysroot.
If you need such functions, open an IR with enhancement request.
Watch Replays of Previous Topics