×
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

How to setup ug_convert_part batch file on Windows 7

How to setup ug_convert_part batch file on Windows 7

How to setup ug_convert_part batch file on Windows 7

(OP)
Referring back to this slick right click on the prt file to convert units method: http://files.engineering.com/getfile.aspx?folder=c... How does one set this up now in Windows 7 or later since there is no longer a File Types tab in the Folder Options dialog?

RE: How to setup ug_convert_part batch file on Windows 7

John R Baker uploaded a batch file to Eng-Tips a few days ago. When run, it created registry entries for NX part files to give RMB options for Assembly Information (ugpc.exe) and NX Part Version (ug_inspect.exe). I modified it to add in the convert part units for mm & inches.
Below is the code, copy & paste into a empty text file, save it, then rename the extension to .bat
Run it by double clicking and as long as you have admin rights, it will update the registry entries for NX part types.

CODE -->

@echo off
:: (c) 2015 joe.petach@siemens.com
::
:: This script will add two commands to the Windows Explorer context menu for NX .prt files.
:: NX Version and NX Assy Info
::
setlocal ENABLEDELAYEDEXPANSION
echo;
echo Adding command NX Assy Info
echo;
reg.exe add "HKEY_CLASSES_ROOT\UGpartfile\shell\NX Assy Info\command" /t reg_sz /d "cmd.exe /s/c \" @\"%UGII_BASE_DIR%\ugii\ugpc.exe\" -s -a \"%%1\" ^& pause \" " /f
echo;
echo Adding command NX Version
echo;
reg.exe add "HKEY_CLASSES_ROOT\UGpartfile\shell\NX Part Version\command" /t reg_sz /d "cmd.exe /s/c \" @\"%UGII_BASE_DIR%\ugii\ug_inspect.exe\" -release \"%%1\" ^& pause \" " /f
echo;
echo Adding command NX Convert Units
echo;
reg.exe add "HKEY_CLASSES_ROOT\UGpartfile\shell\NX Convert to mm\command" /t reg_sz /d "cmd.exe /s/c \" @\"%UGII_BASE_DIR%\ugii\ug_convert_part.exe\" -mm \"%%1\" ^& pause \" " /f
echo;
echo Adding command NX Convert Units
echo;
reg.exe add "HKEY_CLASSES_ROOT\UGpartfile\shell\NX Convert to Inches\command" /t reg_sz /d "cmd.exe /s/c \" @\"%UGII_BASE_DIR%\ugii\ug_convert_part.exe\" -in \"%%1\" ^& pause \" " /f
echo;
echo NX commands added to the context menu for .prt file.
echo.
:EOF 

Anthony Galante
Senior Support Engineer



NX3 to NX10 with almost every MR (21versions)

RE: How to setup ug_convert_part batch file on Windows 7

On a side note, back in the NT4 days I had convert STEP and Convert Iges commands on the file open with .
I cannot remember how I did it, I'm assuming it was from something someone posted on the old bbs board.

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