Cancel
Showing results for 
Search instead for 
Did you mean: 

NXopen Java Multisession

Creator
Creator

Hello,

 

I'm new in NX (11v) and NXopen. I'm trying to modifye a 3D NX Model template and a 2D Sketch.

I do erverything in Java and without starting NX itself. But i think the progrmmlanguage shoudnt be the problem.

I edit some Expressions and save the .prt some where else.

Now my Problem is, i want to run 3DModel editing and 2DSketch simultaneously.

One after One spereated is no problem. But so i have to quit the programm ervery time.

If i run it simultaneously i have Problem with my Session in one JVM (Java Virtual Machine) . I create the Sesseion und the UFSeffeion with the Session Factory.

 

UFSession ufSession = (UFSession) SessionFactory.get("UFSession");
Session theSession= (Session) SessionFactory.get("Session");

Is there anyway I can create a new Session?

Something like:

Session theSession2 = (Session) SessionFactory.get("Session2");

So i can separete the 3D Session an the 2D Session in one JVM?

 

Thnk you for your Support.

Production: NX11.0.2 TeamCenter 11.3.0.1
Development: Java Testing: NX11.0.2 Preparing: NX11.0.2 TeamCenter 11.3.0.1
2 REPLIES 2

Re: NXopen Java Multisession

Phenom
Phenom

ask your question in NX Programming & Customization Forum, you'll have a better chance of an answer

Production: NX.CAE 10.0.2.6
Development: VB.NET (amateur level !)

Re: NXopen Java Multisession

Creator
Creator

You are rigth!

Thank you for your Tipp. Havent seen this forum.

 

If some wants to follow here:

https://community.plm.automation.siemens.com/t5/NX-Programming-Customization-Forum/NXopen-Java-Multi...

Production: NX11.0.2 TeamCenter 11.3.0.1
Development: Java Testing: NX11.0.2 Preparing: NX11.0.2 TeamCenter 11.3.0.1