×
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

NX5 New Part Templates
3

NX5 New Part Templates

NX5 New Part Templates

(OP)
In NX5, the file->new dialog is set up with template files.
I cannot figure out how to customize or add my own template.
I would also like to customize this form so it only contains the information I need.

I looked through some of the documentation, but most of it referred to knowledge fusion, which I don't think we have.

If anyone could show me how to customize a template or point me at some documentation, it would me much appreciated.

Thanks,
Ben

Win32 NX5

RE: NX5 New Part Templates

2
Hello!

You have to open this directory:

c:\Program Files\UGS\NX 5.0\UGII\templates\

You find here ugs_model_templates.pax. If you open it with editor, you see the template's references.

For example:
The first line in the File - new dialog:

  <PaletteEntry id="d1">
    <References/>
    <Presentation name="Model" description="NX Example with datum CSYS">
        <PreviewImage type="UGPart" location="model_template.jpg"/>
    </Presentation>
    <ObjectData class="ModelTemplate">
        <Filename>model-plain-1-inch-template.prt</Filename>
    <Units>English</Units>
    </ObjectData>
  </PaletteEntry>

((Every second is line belongs to the inch measure.
 d1: metric
 d2: inch
 d3: metric))

You can see the filename of the templates in the references.
For example: <Filename>model-plain-1-inch-template.prt...

So, if you open model-plain-1-inch-template.prt from c:\Program Files\UGS\NX 5.0\UGII\templates\ change the adjustments what you like and save it, you will see your customs at the next start.

Dessert: smile

You can change the template's pictures (model_template.jpg), and the description too.

Have a nice day!

Robi

RE: NX5 New Part Templates

(OP)
Excellent!  It looks like this directory has everything I need to customize the templates.

Thank you so much for your help!

Ben

RE: NX5 New Part Templates

If you modify anything in the install directory, you're taking a risk that it will be overwritten when/if you install any NX updates and you'll have to go back and do this every time the files are overwritten.

I don't use templates, but there is a way to define their location without having to change the default templates, so you can avoid them getting overwritten.

From the documentation:

Override the standard setup

You can override the standard setup for the templates by setting the UGII_TEMPLATE_DIR environment variable to point to a directory that contains your .pax files, template .prt (or .sim and .fem) files, and any preview images for the templates.

Customization locations

PAX files located in NX customization locations are also used in the File New dialog box. These locations are typically %UGII_USER_DIR%, %UGII_SITE_DIR%, and %UGII_GROUP_DIR%. The file UGII_BASE_DIR\ugii\menus\ug_custom_dirs.dat defines all the customization locations.

If more than one .pax file or template file with the same name exists, the hierarchy of site, group, and then user determines which .pax file is used.

Tim Flater
Senior Designer
Enkei America, Inc.
www.enkei.com

Some people are like slinkies....they don't really have a purpose, but they still bring a smile to your face when you push them down the stairs.

RE: NX5 New Part Templates

(OP)
Thank you, Tim and Robi.
I've been able to clean up the file-new dialog, and hopefully not have my .pax files overwritten when UG updates.

By the way, Tim - I like the comment on your signature.

-Ben

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