I use batch files and often have several different versions running at one time (earlier today I had NX 3, NX 5 and NX 6 open at one time verifying that a regression truly was). In fact, before the installs started to add separate items to the Windows 'Start' menu, this was the only way that you could get multiple versions to run at one time (a holdover from the days of UNIX) and while I COULD launch my NX sessions from the 'Start' menu I never do so I like to keep totally separate default directories (which since the advent of Customer Defaults is now done there), but it's just an old habit that has worked well for me over the years and so I continue with because of flexibility and simplicity it affords me.
John R. Baker, P.E.
Product 'Evangelist'
NX Design
Siemens PLM Software Inc.
Cypress, CA
Attached is a sample of the basic content of the batch files that use to launch NX. What I do is a place shortcut to this file on my desktop and I launch NX by just double-clicking this file. Note that since this file will launch a command prompt window which will remain active while your next session is running, that once I have the shortcut icon on my desktop I edit it's properties so that it runs 'Minimized' as that makes it less obvious and keeps it out of way. And as long as when you end your NX session, there are no errors during shutdown, the minimized command prompt window will be closed automatically.
I also included in the zip file a .dll which is as nice looking NX 'icon' that you can assign under the 'Change Icon...' option in the properties dialog for the shortcut file. It just adds a little class to your desktop and makes it easier to find your NX launch files.
John R. Baker, P.E.
Product 'Evangelist'
NX Design
Siemens PLM Software Inc.
Cypress, CA
After you've created your shortcut (which points to the .bat file) and placed it on your desktop, select it and press MB3 and go to 'Properties'. You will see a button labeled 'Change Icon...'. Select it and then hit the browse button and find and select the .dll file, and then hit OK there and then once more at the next level. It may take refreshing the desktop, but the icon on your desktop should now look like the attached image.
John R. Baker, P.E.
Product 'Evangelist'
NX Design
Siemens PLM Software Inc.
Cypress, CA
Sorry for any inconvience, although the topic is gone about nx5 & nx6 using together, but I would like to use nx4 instead of nx5 and nx6 together. But I have a problem with port number diversity. Nx4 use 27000 port number, but the higher versions use 28000 yet. So the windows have any enviroment variables, which are important for UG between windows communication. How I create the batch file which set the desired nx version able to run? I installed first the nx4 obviously, and the flexlm use 27000 port number, but the nx6 require 28000 port number.
You also have to have installed and have running license servers for BOTH versions NX 4 (and older) and NX 5 (and newer). As mentioned already, the NX 4 license server uses port 27000 while the NX 5 server uses port 28000 (this is so that they can actually be run simultaneously).
This works fine as I'm currently got on my laptop V16.0/V17.0/V18.0/NX 1/NX 2/NX 3/NX 4/NX 5/NX 6 and can have any combination of these versions up and running at any one time.
John R. Baker, P.E.
Product 'Evangelist'
NX Design
Siemens PLM Software Inc.
Cypress, CA