Hi we are migrating with teamcenter... but we would still want to have our templates to work when we launch nx outside teamcenter.. Right now when I am trying to start a new model (using our model template) it says... file not found. Is there a way to get template working within teamcenter and also outside teamcenter when using NX11
It's odd that NX is reporting "File not found". NX checks to see if the template part file listed in the corresponding pax file exists in the template directory, and if it can't find it then it won't list that template on the File New dialog.
Both native and managed NX use the path defined in the variable UGII_TEMPLATE_DIR to read the pax files (unless your managing your pax files in the database). Managed NX pax files have the prefix "nxdm_" and native pax files have the prefix "ugs_". OOTB, UGII_TEMPLATE_DIR is set to %UGII_BASE_DIR%\UGII\templates.
Managed NX reads the part files from the database and native NX uses the path defined in UGII_TEMPLATE_DIR. Therefore, if you've modified your template part files that you use in managed NX, export them out of the database and place a copy in the folder defined by UGII_TEMPLATE_DIR. If you also edited the names of the part files, open the corresponding "ugs_" pax file in a text editor (e.g., ugs_model_templates.pax) and enter the name of the part file between the <filename> tags. For example:
<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>
Note that if you export your template part files from Teamcenter, to use in native NX, that they will be appended "_<rev>", (e.g., model-plain-1-inch-template_A.prt) so you will have to edit your pax files to accomodate the revision.
I have this weird name.....2xxxxxxx1.prt. ???
That almost seems like you have some form of customization in place that is replacing the OOTB "model<n>.prt" with "2xxxxxxx1.prt". If you enter in a string, such as 211111111.prt, are you able to create a part? Do you still get the "File not found" message (or does that happen elsewhere)?
I have tried with adding numbers ... not working.. I know now that we have TC our ugii env file is custumized... .maybe this is creating the problem