cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

How to get session id of a model using VB API

mdutta
1-Newbie

How to get session id of a model using VB API

How to get session id of a model using VB API

3 REPLIES 3
PARTHIBAN_K
15-Moonstone
(To:mdutta)

Hi Mohit,

     You can get session ID by

Public AConnection As IpfcAsyncConnection

Public BSession As IpfcBaseSession

Public SessionID As String

If Not AConnection Is Nothing Then

      AConnection = CConnection.GetActiveConnection.GetConnectionId

Else

AConnection = New CCpfcAsyncConnection).Connect(Nothing, Nothing, Nothing, Nothing)

End If

SessionID = AConnection.GetConnectionId

You can access only one CREO connection via vb api, after got connection from creo you can use more than one creo session, VB API Stores the connection ID in Memory, It can only access previous CREO which already connected

Parthiban Kannan

href="https://www.linkedin.com/in/parthiban-kannan/" target="_blank"

Hi Parthiban,

                 Thanx for your reply. but I want to get session ID of each component which is added in the model tree. using VB API

Thanx

Mohit

PARTHIBAN_K
15-Moonstone
(To:mdutta)

Hi Mohit,

    I think you're expecting Model Relation ID (i.e → ID of the components which placed in Assembly).

Parthiban Kannan

href="https://www.linkedin.com/in/parthiban-kannan/" target="_blank"
Top Tags