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

Using JLink to determine the session number

ptc-2100072
1-Newbie

Using JLink to determine the session number

I'm truing to add a program to a drawing and I can do this using a mapkey in JLink but I want ot know the session number so I can correctly add the program each time (e.g. MyVariable:xx=15 where xx is the session number). I've tried to look for a simple identifier with the Model or Drawing and even the Session objects, I've tried to look for a collection of session objects to check against but all to no avail. Does anyone know how I can determine this?
1 REPLY 1

I managed to sort it out, I may have led people astray with session number, it was the model number for the session, e.g. MyParameter:D=MyParameter:x where x is the model sequence number. Here's the code I've used:
c51c4c02ad
In the ocde above 'solid' is the model I used to create the drawing.
Announcements
Attention: Creo 7.0 Customers
Please consider upgrading
End of Life announcement here.

NEW Creo+ Topics:
PTC Control Center
Creo+ Portal
Real-time Collaboration