Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • 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
Joined
Jan 29, 2013
Messages
261
Location
US
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.
 
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

Back
Top