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!

UG_CONVERT_PART Syntax 2

Status
Not open for further replies.

DaSalo

Mechanical
Apr 27, 2010
213
Hello,

Trying to convert a file from in to mm. Don't have any experience working in command prompt so the syntax is causing me some trouble. I can get the conversion to work if I place my part file in the UGII folder (so that it is in the same directory as UG_CONVERT_PART), open command prompt, and input >ug_convert_part -mm test_part.prt

if I have "Test_part.prt" in a folder on the C: drive that is different than the folder housing UG_convert_part I can't get program to find it. I keep getting the message "Too many files specified". I am trying a syntax like this:

>ug_convert_part -mm -s -d /New Folder/test_part.prt

Anyone see what I'm doing wrong?

Thanks in advance for any assistance.
 
Replies continue below

Recommended for you

I think you'll find this thread useful: thread561-261407
 
So as to save you a lot of digging, here is the single most useful piece of material (see attached) that you would have found at the link supplied above.

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.
 
Whenever you are executing commands from Command Prompt you can get the help by just entering the command name without any parameters, here you can enter this line in the command prompt %UGII_ROOT_DIR%\ug_convert_part.exe and hit Enter, that lists the Help information.
For regular DOS commands you can get help by entering command name followed by /? or Help followed by the command name. For example :
Help DIR
or
DIR /?
 
Thanks for the help everyone. I got it working and then got it working from the right-click menu in Windows Explorer thanks to the great Power Point from cowski via John Baker.

One small issue that is puzzling me: files that are located on the desktop do not work.

When I right-click on a file on the desktop and choose the convert command that I have added to that menu the Command Prompt opens and after a decent amount of time I get an error message saying that it could not find the directory (can't remember exact wording of the error and am at home now so can't check). If I take this same file and place it in any other directory, either on my local drive or on a network drive, it works just fine: I right-click on the file, choose the convert command, and it executes within a few seconds.

What makes the Desktop different?

Also, we are currently using 4 different versions of NX ranging from NX2-NX7.5. I assume that if I run a part from an earlier version through the converter utility in the NX7.5 UGII folder it will also update that part and prevent it from being opened in earlier versions of NX. Is this correct?

Thanks again for the help getting this working.
 
The issue with using the Desktop is that the folder name (C:\Documents and Settings\*yourname*\Desktop)contains spaces. Wrap the folder and filename in quotes ("C:\Documents and Settings\*yourname*\Desktop\Wrong_Units.prt") and it should work.

With the batch file approach, try using "%1".

NX 6.0.5.3 (NX 8 Beta)
Windows XP32
 
The other problem with files on the desktop is the full file name may exceed the maximum length for the full file name in the ug_convert_part program.



"Wildfires are dangerous, hard to control, and economically catastrophic."

Ben Loosli
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor