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!

How To Run UG Convert

Status
Not open for further replies.

anyoldname

Automotive
Oct 11, 2005
60
I'm trying to convert a part file from mm to inches and have found several threads stating that ug_convert_part can be used. The thread below gives an expanation of the options within ug_convert but due to a combination of me being stupid and having virtally no experience of using command window prompts I can't figure out exactly what I need to type in.


Extract from this thread:

ug_convert_part -mm|-in -[o s u uo x y] [-o <dirname>] <part_name>|-d <dirname>

Options in brackets are not required. Options separated by the pipe character `|' mean that you must provide either the option before the pipe or the option after the pipe, but not both. The first set of options, -mm | -in, denotes the units you are converting to, and are not optional. You must either use -mm to convert to millimeters or -in to convert to inches.
d -Sets current directory as the source

-d <dirname> -Sets the directory <dirname> as the source

-in -Converts to inch units

-mm -Converts to metric units

-o <dirname> -Sets the directory <dirname> as the destination

-s -Traverses subdirectories

-u -Converts UDFs (user defined features)

-uo -Converts only UDFs (user defined features)

-x -Exports the annotated expressions to a <filename>.exp_txt file

-y -Converts entire assembly




My metric part is called ug_seed_mm and is located in c:\ug_seed_parts.

I start the command window from Start > All Programs > UGS NX 5.0 > NX Tools > Command Prompt

To change the working directory to c:\ug_seed_parts I type in pushd c:\ug_seedparts (the cd command doesn't seem to work, I read online that this is something to do with Windows XP)

The next part of running ug_convert is what I can't figure out....

Obviously the command starts with
ug_covert_part -in...............

Can anyone explain what I need to enter to select the above file from its location and convert it to inches please?

Thanks
 
Replies continue below

Recommended for you

Do you want to copy and rename the seed file, or replace the one you have? Is this a seed file for a part file (no assembly structure, no udf's , etc)?
 
This thread has a few alternatives to the command line: thread561-261407
 
The file mentioned above is the company's mm unit seed part so has no features, I need to create an inch unit version of it (I want to use the metric seed part as there has been some work done on a standard layer set up etc and I'd like the mm and inch versions of the start part to keep layers etc common between the 2 versions).

Ideally the ug_convert_part process would give the inch version a new name but I could do this manually after the conversion.

Thanks.
 
First, I would copy ug_seed_mm.prt to ug_seed_in.prt before I do anything else.

Then run the command like this from the command prompt window:
ug_convert_part -in c:\ug_seed_parts\ug_seed_in.prt

This assumes it is a seed file for creating individual parts, no assembly structure and not a udf.
If you set your current directory to c:\ug_seed_parts, you can eliminate that from the command line.

There is a utility posted that will do the ug_convert_part in a GUI.


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

Ben Loosli
 
This thread has a few alternatives to the command line: thread561-261407: Converting English to Metric (Sound like a "DURRR" question... maybe?)


My UG installation doesn't seem to have the user documentation that JohnRBaker mentions, I've already looked for it a few times. I'm running a genuine setup but whoever did the original installation hasn't installed the help files, this is fairly typical of what out IT dept does as I've had the same issue with ProE in the past


 
Note that the Help files come on different media than does the software and so unless you buy a 'subscription' you will only get DVD's for the software, the Help files would then have to be downloaded from the net. Note that the Help files are NOT an extra cost item, just that the 'subscription' covers the convenience of getting them on their own separate media (DVD), but anyone with a valid license can download the Help files directly from the GTAC support site (note that you will be asked to enter your WebKey ID and password when you select the 'Download & Upload Files' item):


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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor