NX Making a custom drawing template available in the File --> New dialog

2019-04-26T13:52:52Z
NX for Design

Summary


Details

--------------- 
How can you make a custom drawing template available in the File --> New 
dialog?



Solution

 This works for any type of template. It is necessary to edit the correct pax 
file. For Native NX, do NOT edit any of the pax files that start with 
"nxdm_". These files are specific to NX Manager.


After creating the template file and placing it in the /ugii/templates folder, 
edit the ugs_drawing_templates.pax file in a text editor. Notice the 
PaletteEntry sections. Copy the last section down below (see sample):


 <PaletteEntry id="d26"> 
 <References/> 
 <Presentation name="B - Views" description="NX Example, 4 Views, 2 Sheets"> 
 <PreviewImage type="UGPart" location="drawing_views_template.jpg"/> 
 </Presentation> 
 <ObjectData class="DrawingTemplate"> 
 <TemplateFileType>none</TemplateFileType> 
 <Filename>B-views-template.prt</Filename> 
 <Units>English</Units> 
 <UsesMasterModel>Yes</UsesMasterModel> 
 </ObjectData> 
 </PaletteEntry>


and edit as follows.


<PaletteEntry id="d26"> 


Change the "d" number to a unique number (one not already used in the file). 
For this example, change it to "d27.


<Presentation name="B - Views" description="NX Example, 4 Views, 2 Sheets">


Change to desired ouput.


<PreviewImage type="UGPart" location="drawing_views_template.jpg"/>


Change "location: to point to a preview image. To create the image, use File 
--> Export --> select image type to export such as jpg, etc. BMP is not 
supported. You can also specify the template part file and the embedded image 
will be extracted. The file types .prt, .fem, .sim, .bkm, & .plmxml are 
supported.


<Filename>B-views-template.prt</Filename>


Change to the correct file name.


<Units>English</Units>


Change to Metric if needed.


Remember to back up any new/modified files as they could be overwritten when 
installing upgrades.



Notes and References


Hardware/Software Configuration

Platform: na
OS: n/a
OS Version: n/a
Product: NX
Application: ASSEMBLIES
Version: V1847
Function: PART_FILE_OPS

Ref: 001-6810859

KB Article ID# PL8009936

Contents

SummaryDetails

Associated Components

Assemblies