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

How to change units in a prt file

How to change units in a prt file

How to change units in a prt file

I'm new to UG and did a model in inches instead of mm.  Is there an easy way to change that?

RE: How to change units in a prt file

I got this directly from "Gateway". You must open a command prompt window (PROGRAM-UNIGRAPHICS-UNIGRAPHICS TOOLS-COMMAND PROMPT).

At the operating system prompt, type:

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.
 Sets current directory as the source
-d <dirname>
 Sets the directory <dirname> as the source
 Converts to inch units
 Converts to metric units
-o <dirname>
 Sets the directory <dirname> as the destination
 Traverses subdirectories
 Converts UDFs (user defined features)
 Converts only UDFs (user defined features)
 Exports the annotated expressions to a <filename>.exp_txt file
 Converts entire assembly

RE: How to change units in a prt file

Lawrence Morauski wrote a program called Convert Part, which is freely available I beleive on the UGS bulitin board (newsgroup). You can also get it here http://www.vickers.de/ugconv.htm.
It is an excelent tool.

DL Engineering Services

specializing in CAD Design Consultation Services

RE: How to change units in a prt file

The converter worked great.  Now everything is in the correct units, just 25.4 times bigger than I want it!!

Thanks to both and Mr. Morauski!

RE: How to change units in a prt file

     I found the same dilemma!  However, I am working with unparameterized features.  In my case I was able to select all, use TRANSFORM-->SCALE and then scale it back the 25.4.  Worked like a charm.  Don't know what you would do for parametric features unless you wanted to go to EXPRESSIONS and scale each expression by 25.4??  

Good luck.

RE: How to change units in a prt file

hmm, the link to UGCONV tool (http://www.vickers.de/ugconv.htm) doesn't seem to work.  Can anyone share the tool, or point out another location to get it?


RE: How to change units in a prt file

...nevermind the above post.  Link is actually working.

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! Already a Member? Login


eBook - Simulation-Driven Design with SOLIDWORKS
Simulation-driven design can reduce the time and cost of product development. In this engineering.com eBook, we’ll explore how SOLIDWORKS users can access simulation-driven design through the SOLIDWORKS Simulation suite of analysis tools. Download Now
eBook - Integrating the Engineering Ecosystem
Aras Innovator provides multiple options for integrating data between systems, depending on the scenario. Utilizing the right approach to meet specific business requirements is vital. These needs range from authoring tools, federating data from various and dissimilar databases, and triggering processes and workflows. Download Now
Research Report - Simulation-Driven Design for SOLIDWORKS Users
In this engineering.com research report, we discuss the rising role of simulation and the paradigm shift commonly called the democratization of simulation. In particular, we focus on how SOLIDWORKS users can take advantage of simulation-driven design through two analysis tools: SOLIDWORKS Simulation and 3DEXPERIENCE WORKS. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close