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!

NX5 New Part Templates 3

Status
Not open for further replies.

BenEddy

Marine/Ocean
Mar 3, 2006
17
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
 
Replies continue below

Recommended for you

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: :)

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

Have a nice day!

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

Thank you so much for your help!

Ben
 
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.

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

Part and Inventory Search

Sponsor

Back
Top