×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

journal to get nx version

journal to get nx version

journal to get nx version

(OP)
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.

RE: journal to get nx version

Depends on what level of detail you require. If all you need to know is the major and minor versions
  • NX 8.0.3.4: major = 8, minor = 0
  • NX 8.5.1.3: major = 8, minor = 5
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

RE: journal to get nx version

(OP)
Thanks cowski, that's exactly what I was looking for.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources