Details
How can you add custom Drafting templates to the NX install?
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.
In previous versions of NX, drawing and sheet templates were stored in the %BASE_DIR%\UGII\Templates directory.
In NX12 the drawing and sheet templates are stored in the %BASE_DIR%\NX12\DRAFTING\templates directory.
After creating the template file and placing it in the %BASE_DIR%\NX12\DRAFTING\templates directory, 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.
Hardware/Software Configuration
Platform: all
OS: n/a
OS Version: n/a
Product: NX
Application: DRAFTING
Version: V12.0
Function: DRAWING/VIEW
Ref: 002-8008468