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.
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS Come Join Us!Are you an
Engineering professional? Join Eng-Tips Forums!
*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting GuidelinesJobs |
|
RE: Locating templates
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
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
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