×
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

Programmatically identify the version of NX installed on a system

Programmatically identify the version of NX installed on a system

Programmatically identify the version of NX installed on a system

(OP)
Is there an easy way (via batch or script) to identify the version of NX 6 installed on a system (32 or 64 bit NX6)?

...rick...

RE: Programmatically identify the version of NX installed on a system

Well in the 12th line of text in the syslog, it reports which 'software version' of NX, 32 or 64 bit, is being run.

While that might help you out, I'll ask around for if there's a more direct NX Open/KF call which might reveal this same information.

John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/

To an Engineer, the glass is twice as big as it needs to be.
 

RE: Programmatically identify the version of NX installed on a system

OK, there is an NX Open routine...

UF_ask_system_info()

...which will return something which you can use to identify whether you're running a 32-bit versus a 64-bit version of NX.  What is reported is the Windows OS which is running but based on HOW that is worded, you can deduce what it is that you're looking for.\

For example, if this call returns a string with says something like...

Windows NT (x64)

...then you know that this is the 64-bit version of NX.  However, if it returns something like...

Windows NT 6.1

...then it's the 32-bit version of NX which is running.

I know it's not completely logical, but then it IS Windows which is being asked for the information, so beggers can't be choosy winky smile

John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/

To an Engineer, the glass is twice as big as it needs to be.
 

RE: Programmatically identify the version of NX installed on a system

(OP)
John,

Thx.  But of those two answers, I'm thinking the syslog is the better of them.  FYI I'm not tryong to make that determination while NX is running.  I'd like to make that determination from the OS level.  I need to know which systems have the 32bit NX6 on them vs the 64bit version.  Our problem is that some, but not all, of our users are running 64bit Win7 are actually running the 32bit version of NX6.

I'd like to get an accutate accounting of our systems, and identify those specific cases.

I thought a batch call from everyone's login script would be easier than having everyone run an NX utility. A lot of our users run NX very infrequently.  It's easy to determine OS in that circumstance, but not so w NX.

I was hoping perhaps there may be a few unique filenames in those versions, but perhaps I'll just have a little vbs or powershell script to get it from the syslog.

...rick...

RE: Programmatically identify the version of NX installed on a system

Whatever floats your boat...

John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/

To an Engineer, the glass is twice as big as it needs to be.
 

RE: Programmatically identify the version of NX installed on a system

Rick,

Please try the following command

"%UGII_BASE_DIR%\ugii\env_print.exe" -p

which will return either ix86wnt for 32-bit or x64wnt for 64-bit.

Hope this helps,

Joe

RE: Programmatically identify the version of NX installed on a system

Rick,

Correction: A better approach may be to use

"%UGII_BASE_DIR%\ugii\env_print.exe" NX_ARCH | findstr x86

which will set ERRORLEVEL to 0 for 32-bit or 1 for 64-bit.

Regards, Joe

 

RE: Programmatically identify the version of NX installed on a system

(OP)
Perfect!

Thx for taking the time Joe


...rick...
 

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