Welcome to the COE Discussion Forum! 

 

To participate in the discussion forum, you must be logged in to the website.  If you forget your login information, please contact COE Headquarters at coe@coe.org or (800) 263-2255.

If you are new to the COE Discussion Forum and would like to participate, please register.


Forum Highlight: CATIA V6

 

Get Answers to Your V6 Questions
Dassault Systèmes answers user questions about CATIA V6.  Discuss these answers and propose new questions with end users from around the world in the CATIA V6 Forum.

COE DISCUSSION FORUM
Subject: Retrieve all active sessions?

You are not authorized to post a reply.   
Author Messages
DAFTGLINT

14 Jul 2008 11:40 AM

Hello I try to retrieve from VB all active sessions of Smarteam and always return me 1 the mine :'( I´d like to one search with all active sessions and manage them.

Anyone has tried it?

Best Regards.

Remarks

Creating a Session in Server Mode

To create a SmSession object in Server Mode (ServerMode = True), use the Visual Basic method CreateObject instead of CreateSession, as in the following example:

'

Dim SmEngine As SmApplic.SmFreeThreadedEngine
Dim SmSession As SmApplic.SmSession

Set SmEngine = CreateObject("SmApplic.SmFreeThreadedEngine"
SmEngine.Init "SmTeam32"
Set SmSession = CreateObject("SmApplic.SmSession"
SmSession.Init SmEngine, "MySession", "Smteam32"
SmSession.OpenDatabaseConnection "SmDemo", "system", False
SmSession.UserLogin "joe", ""
''
WOLFGRRL

16 Jul 2008 12:42 PM
As far as I know, you can only manage sessions via LUM, and that only allows you to see the sessions, not manage them.
PIANNACCHIONE


22 Jul 2008 12:38 PM
Use the Sessions property on the ISmEnginer interface. You can also use the SessionsCount to retrieve the number of sessions. You're on your own to try and manager them though.
DAFTGLINT

23 Jul 2008 02:52 AM
Yes but If you try it, doesn´t work i tested in one server (mine) connecting as servermode=true
and I only retrieve one session in sessioncount. instead of the 3 clients that are connected and getting licenses.

Vengal

02 Sep 2008 07:16 AM

got the same problem...can't you even just get somekind of a list of active users?

I can only see one user (me) too... =\

You are not authorized to post a reply.
Forums > COE Forums > SmarTeam > Retrieve all active sessions?



ActiveForums 3.6

    

401 North Michigan Avenue, Chicago, IL 60611-4267 | (312) 321-5153 | (800) COE-CALL (U.S.)