Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!usc!ucsd!helios.ee.lbl.gov!hellgate.utah.edu!cs.utah.edu!thomson From: thomson@cs.utah.edu (Rich Thomson) Newsgroups: comp.graphics Subject: Re: SunPHIGS inquire wks state value Message-ID: <1990Jul10.172335.3619@hellgate.utah.edu> Date: 10 Jul 90 23:23:35 GMT References: <7209@amelia.nas.nasa.gov> Distribution: usa Lines: 34 X-Local-Date: 10 Jul 90 16:23:35 PDT In article <7209@amelia.nas.nasa.gov> mckie@amelia.nas.nasa.gov (William McKie) writes: >We recently had use for knowing whether a particular PHIGS >workstation was currently open or not, and we located the >INQUIRE WORKSTATION STATE VALUE routine in the SunPHIGS 1.1 >manual (p 675). [The page numbers I give reference the standard ISO/IEC 9592-1:1988(E)] PHIGS has several operating states. These are: PHIGS: Open/Closed Workstatiob: Open/Closed Archive File: Open/Closed Structure: Open/Closed The INQUIRE WORKSTATION STATE VALUE tells you whether or not the application currently has at least one workstation open (pg. 107). Each workstation has in its state list whether or not it is open or closed (pg. 68). What you probably want is a list of all open workstations which you can then search to find the workstation you're looking for: (pg. 235) INQUIRE SET OF OPEN WORKSTATIONS (PHOP, *, *, *) Parameters: Out Error Indicator Integer Out Set of Open Workstations List(Workstation Identifiers) This should return to you a list of the ID's of the workstations that are open by this application. -- Rich Rich Thomson thomson@cs.utah.edu {bellcore,hplabs,uunet}!utah-cs!thomson ``If everybody is thinking the same thing, is anybody thinking?'' --Bob Johnson