Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Programmatically identify the version of NX installed on a system 1

Status
Not open for further replies.

rstavanja

Mechanical
Oct 31, 2007
4
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...
 
Replies continue below

Recommended for you

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

To an Engineer, the glass is twice as big as it needs to be.
 
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 ;-)

John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA

To an Engineer, the glass is twice as big as it needs to be.
 
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...
 
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
 
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

 
Perfect!

Thx for taking the time Joe


...rick...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor