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
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
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
RE: NX5 New Part Templates
Thank you so much for your help!
Ben
RE: NX5 New Part Templates
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
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