Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IFRs on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Locating templates

Status
Not open for further replies.

chopper75

Aerospace
Sep 27, 2011
95
I have templates created. I would like to know how to point to them so that they show up when I create a new part.
 
Replies continue below

Recommended for you

If one of this templates is for modeling purposes, you can copy them into UGII\templates with the name
model-plain-1-mm-template.prt (in metric) or model-plain-1-inch-template.prt (in english). This template is used when creating a new part with the Model template.

Regards
Frank
 
You need to edit the .PAX files located in the template ditectory.

COPY THE ORIGINAL BEFORE YOU EDIT ANYTHING.

That being said, open it up in notepad and add another entry for your new template.

Hopefully that can get you started.

Jay

NX 6.0.5.3
 
Are we talking about Modeling/Assembly template parts (so-called 'start parts')?

If so, there are a couple of things that you can do...

a) You could simply replace the original Modeling/Assembly templates with your own...

..or...

b) You could place them in the 'startup' folder in your User folder. If you don't have one, create a folder somewhere with a name like 'my_defaults' and then set the environment variable...

UGII_USER_DIR=<full path to your User folder>\

...and inside this folder create another folder named 'startup'. Place in THIS folder a copy of the XML file 'ugs_model_templates.pax' (the original can be found at '...\UGII\templates'). Now place your versions of the Modeling and/or Assembly template parts in this same 'startup' folder. If your template files have the exact same names as did the original template files found in the '...\UGII\templates' folder then you're done, just restart NX and when you go to 'File -> New' the templates that you see there will be your own. Now if you don't use the same names then you will need to edit the 'ugs_model_templates.pax' file so that the files names referenced in the .pax file match the new names of your template files. Also if you're not copying all the modeling templates over (there are 8 Metric unit files and 8 Imperial unit files) to your start-up folder then you will need to edit the .pax file to remove the unwanted references to the files which you are not using.

Note that if you were to give YOUR copy of the .pax file a DIFFERENT name (if you do, I would recommend that you name it 'ugs_amodel_templates.pax' - note the additional 'a' since there is an alphabetical issue here) then a NEW tab will be ADDED to the 'File -> New' dialog which contains your templates WITHOUT replacing the existing system provided 'Model' tab, however you do this you will need to edit the 3rd line found in your copy of the .pax file changing the entry FileNewTab="Model" to something like FileNewTab="My Model" so as to give a unique name to the new dialog tab.

Anyway, we recommend that you follow option b) since that will isolate your files from the system files assuring you that they will not be overwritten during a future update.

BTW, you can follow this same basic procedure for replacing your Drawing Templates as well.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
Or why don't use UGII_TEMPLATE_DIR enviroment variable and place things where you want them =) (original template dir can be found at \UGII\templates)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor