Wednesday, October 3, 2007

.PRT extension and multiple NX versions


If you have multiple NX versions installed, you may sometimes need to be able to open a part with say, NX4 but not with the latest version.

Normally, what NX does is it tries to see whether you have an already open NX session. If you do, the .prt file you've double clicked is routed to this session. If not, then the latest version of NX installed is launched, and the .prt is opened.

There's a '-version' parameter of ugs_router.exe to specify the exact version you'd like to open your part with. The versions are as follows :
  • UG V18 : -version=V18.0
  • NX : -version=V19.0
    ..
  • NX4: -version=V22.0
  • NX5: -version=V23.0 and so on.
So, if you go to My Computer - Tools - Options - File Types and find PRT in this list and change the default "open" command in such a way that it includes -version parameter, Windows will launch the specific version of NX in case of a double click.

For multiple versions, you need to define new "commands" in Edit File Type window. Or, if you're lazy- here's the .reg file itself. (the NX path might not match your system, be sure to change it out before importing into your registry)

5 comments:

Anonymous said...

It's good, very good.

there are several parts on older NX that its interesant modify it and save but not on newer NX cause there isn't possible make a "save as..." like other programs.

---

One question more:

In "ugs-router", is there any parameter for opening files without load their componets?

Thank you for all.

:-)

Hakan Sonmezler said...

Alfonso,

I could not understand your first question, could you rephrase it please ?

ugsrouter doesn't have a parameter for opening assemblies with unloaded components. However, you could save a bookmark with unloaded components, and then open it when you need to.

Unknown said...

Hi
I tried as per your instructions.but when I change the open to "C:\Program Files\UGS\NX 5.0\UGII\ugs_router.exe"-version=23.0 -ug -use_file_dir "%1"

when i press Ok , I am getting a error called the specified program could not found.Make sure the file name and path are correct.

Do the need ful

Anonymous said...

For the ones who tried to solve the Problem, for example on Windows 7:

You need to download ExtMan, a software to change the Registry shortcuts.

There you can change the stuff as mentioned in the article in Windows 7.

For NX 7 use V25.0
For NX 7.5 use V25.5

Anonymous said...

I tried this and forgot to use a capital V in front of the version number:

-version=26.5

Should have been:

-version=V26.5