Ask Your Question

hunter2's profile - activity

2018-04-18 18:15:55 -0500 received badge  Famous Question (source)
2018-03-27 01:03:50 -0500 received badge  Notable Question (source)
2018-03-26 19:39:25 -0500 received badge  Popular Question (source)
2018-03-26 19:33:02 -0500 received badge  Student (source)
2018-03-26 11:38:37 -0500 asked a question spam prevention

For real, what's happening here? There needs to be a report button for posts. Enough reports gets a post temporarlily removed for inspection. Just an idea.

2018-03-21 15:02:11 -0500 answered a question Load library in PSSe 33

If you are using the PSSE command line interface or a Python script, make sure you have syntax correct.

psspy.addmodellibrary(r"""C:\path\to\your.dll""")

Also be sure to include the full path of the DLL file.

2018-03-21 10:44:53 -0500 answered a question How to load a python script via batch file having a pss/e application running

If I'm understanding your question correctly, it sounds like you are trying to open an instance of PSSE and have that instance of PSSE execute a Python script. If an instance of PSSE is already open, then you want to control that instance and get it to execute your Python script. And this is all done by some vba code that creates a Windows batch file.

If that's correct, then your problem is with Windows process management. For security reasons, an operating system won't let one application's process directly interact with another application's process. On other words, you will need to open a new instance of PSSE every time. Windows will not let your vba script look for an open instance of PSSE and directly interact with it.

Elaborate more on what you are trying to accomplish with your vba scipt, and I might be able to help with a workaround.