cancel
Showing results for 
Search instead for 
Did you mean: 

Get current NX Version with NXOpen

Pioneer
Pioneer

Hello,

 

I am using NXOpen .net and would like to get the version of the NX application belonging to my session. If I have to use the registry: Is it allowed to install multiple versions? Which one is the current I am using?

 

Robin

16 REPLIES

Re: Get current NX Version with NXOpen

Esteemed Contributor
Esteemed Contributor

You can install multiple NX releases concurrently.

 

    Dim theSession    As Session   = Session.GetSession()
Dim UGRelease As String = Nothing Dim UGFullRelease As String = Nothing UGRelease = theSession.GetEnvironmentVariableValue("UGII_VERSION") UGFullRelease = theSession.GetEnvironmentVariableValue("UGII_FULL_VERSION")

The above is a VB.NET example.

 

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX11.0 EAP, NX12.0 EAP

How to Get the Most from Your Signature in the Community

Re: Get current NX Version with NXOpen

Pioneer
Pioneer

Works like a charm. Thank you!

Re: Get current NX Version with NXOpen

Esteemed Contributor
Esteemed Contributor

Note: (if it is important to you) neither of these report the MP (maintenance pack) or hotfix info.

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled


Re: Get current NX Version with NXOpen

Pioneer
Pioneer

Yes I noticed that. Would have been nice, but I can live without it.

Re: Get current NX Version with NXOpen

Creator
Creator

Hi Ken,

May I know how to get MP (maintenance pack) or hotfix info? I just happen to use it.

Thanks

Reilley

Re: Get current NX Version with NXOpen

Siemens Phenom Siemens Phenom
Siemens Phenom

We have a small VB example program on the solution center, called "report full nx version including any mp and rev".  It might be faster to search for nx_api4652

 

It reads the syslog to find and echo the information.

Re: Get current NX Version with NXOpen

Creator
Creator

Great, thank you!

Re: Get current NX Version with NXOpen

Esteemed Contributor
Esteemed Contributor

I have filed ER#7915944 to get a variable with the MP information.

This is useful inside of NX and also it can be retrieved uaing env_print.exe, which would be much better than parsing the output of "env_print.exe -m".

ER text:

			    ER Template
                            -----------

* Short Description of desired enhancement: <Problem rather than a solution>
    It is very cumbersome to determine the MP version of the currently running NX session

* What activity in your process is the product not able to currently handle?
    We want to know the current MP release from within NX

* What result are you trying to achieve? (Please provide as many details as possible.)
    We have access to UGII_FULL_VERSION, UGII_MAJOR_VERSION, UGII_MINOR_VERSION and UGII_SUBMINOR_VERSION, but there is no variable that also includes the MP version.

* Do you currently have a workaround?
    Run "env_print.exe -m" and parse the output.

* Do you have a proposal for the solution you envision Siemens PLM providing for this capability?
    UGII_FULL_MP_VERSION should contain v10.0.3.5 MP11
    UGII_MP_VERSION should contain 11

* What is the level of productivity gained from such an enhancement?
    HIGH, since features are now added with MP releases it is needed to determine if a function is available or not.
    In addition some things get broken in one MP release and are fixed again in another, so it is needed to determine the current MP version to allow a feature or not.
Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX11.0 EAP, NX12.0 EAP

How to Get the Most from Your Signature in the Community

Re: Get current NX Version with NXOpen

Esteemed Contributor
Esteemed Contributor

As well as "Me too"ing your ER...

I just filed an IR (presumably to be turned into an ER) 7916250 - "Add ENV variable with hotfix / patch info (if any)"

 

Similar reasons, to make it easy to see if hotfix / patch has been applied.

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled