Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

journal to get nx version

Status
Not open for further replies.

multicaduser

Industrial
Jan 29, 2013
261
NX8.0.3.4
NX8.5.1.3
Native

I know how to do this with grip, but in trying to upgrade to newer tools I'm looking for a different way to get the version of NX being run into an expression or attribute. Can this be done with journals or other included tools? It's most likely embarassingly simple but the doc's haven't been installed by IT........yet.

Thanks in advance.
 
Replies continue below

Recommended for you

Depends on what level of detail you require. If all you need to know is the major and minor versions
[ul][li]NX 8.0.3.4: major = 8, minor = 0[/li][li]NX 8.5.1.3: major = 8, minor = 5[/li][/ul]
then you can use:

Code:
Dim majorVersion As String = theSession.GetEnvironmentVariableValue("UGII_MAJOR_VERSION")
Dim minorVersion As String = theSession.GetEnvironmentVariableValue("UGII_MINOR_VERSION")

It gets a bit trickier if you need to differentiate patch levels (MR's and MP's). One journal that I've seen saved the NX log file to disk then parsed the log file to get the info.


www.nxjournaling.com
 
Thanks cowski, that's exactly what I was looking for.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor