×
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

Locating templates

Locating templates

Locating templates

(OP)
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.

RE: Locating templates

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

RE: Locating templates

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

RE: Locating templates

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.

RE: Locating templates

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)

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