CoCreate User Forum  

Go Back   CoCreate User Forum > Support > Customization

Reply
 
Thread Tools Search this Thread Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1  
Old 07-18-2005, 07:36 PM
coroto coroto is offline
Registered User
 
Join Date: Sep 2003
Location: Santa Rosa, CA
Posts: 75
Question 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?
Reply With Quote
  #2  
Old 07-18-2005, 10:32 PM
clausb's Avatar
clausb clausb is offline
Registered User
 
Join Date: Nov 2002
Posts: 1,168
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/
Reply With Quote
  #3  
Old 07-26-2005, 03:30 AM
GiorgioL GiorgioL is offline
Registered User
 
Join Date: Oct 2002
Location: Pordenone (PN) - ITALY
Posts: 78
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
Attached Files
File Type: txt find_pid.vbs.txt (1.2 KB, 284 views)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 01:50 PM.



Hosted by SureServer    Forums   Modeling FAQ   Macro Site   Vendor/Contractors   Software Resellers   CoCreate   Gallery   Home   Board Members   Regional User Groups  By-Laws  

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
You Rated this Thread: