#1
|
|||
|
|||
Can OSDM find out its own PID?
I'm wondering how the LISP code in OSDM can inquire/retrieve the process ID number of the OSDM session. Any good ideas? Is it something you'd have to write an external (e.g. VBScript) program to accomplish? In my case I only care about doing this on Windows (not HP-UX).
What if there happens to be >1 OSDM session running on a machine? How could you make sure you were getting the right one? |
#2
|
||||
|
||||
Re: Can OSDM find out its own PID?
I am currently not aware of a way to inquire the process ID from within OSDM. The only hack proposal I can come up with is to start a process from OSDM, have that process inquire its own ID and then, using the ID, walk up the chain of parent processes until it finds SolidDesigner.exe. Disgusting, kind of - still hoping there is a better way to solve this.
What do you need the process ID for? Claus
__________________
CoCreate Modeling FAQ: http://www.clausbrod.de/CoCreateModeling/ |
#3
|
|||
|
|||
Re: Can OSDM find out its own PID?
Hello to everybody,
in order to find out the process ID of OSDM (soliddesigner) I write a VBS script. Digit: (setf PID (SD-SYS-EXEC "find_pid.vbs Soliddesigner.exe")) the variable PID there is the number of the processID. Pay attention to the path where you put the find_pid.vbs file. Find_pid.vbs script runs well if only one OSDM is active. Regards. Giorgio L. P.S.: rename the file in vbs |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|