<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<!--
Copyright (c) 2006 UGS Corp.

All Rights Reserved.

This software and related documentation are proprietary to UGS Corp.
-->
<html>
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <title>Create or modify part templates</title>
      <script language="javaScript">
        abridged="false";
        displayConditions=new Array();
      </script>
      <link type="text/css" href="../css/main_styles.css" rel="stylesheet">
   </head>
   <body class="bodydocs" onload="top.pageLoader()" bgcolor="#FFFFFF">
      <div class="title_topic4" id="xps10_pagetitle">Create or modify part templates</div>
      <hr noshade="true">
      <table cellspacing="4" align="center">
         <tr valign="top">
            <td bgcolor="#f7f7f7" colspan="1" rowspan="1">
               <p class="para_td"><a class="links" href="javascript:void(0)" onclick="top.openFile('shared_func/fil_new_ov.html');return(false);">Overview</a></p>
            </td>
            <td bgcolor="#f7f7f7" colspan="1" rowspan="1">
               <p class="para_td"><a class="links" href="javascript:void(0)" onclick="top.openFile('shared_func/fil_new_ht.html');return(false);">How To</a></p>
            </td>
            <td bgcolor="#f7f7f7" colspan="1" rowspan="1">
               <p class="para_td"><a class="links" href="javascript:void(0)" onclick="top.openFile('shared_func/fil_new_list_op.html');return(false);">Options</a></p>
            </td>
            <td bgcolor="#f7f7f7" colspan="1" rowspan="1">
               <p class="para_td"><a class="links" href="javascript:void(0)" onclick="top.openFile('shared_func/fil_new_list_rt.html');return(false);">Related Topics</a></p>
            </td>
         </tr>
      </table><br><p class="para_topic">The <b class="uiTerm">File New</b> dialog box has tabs to logically organize the templates. Each tab (for example, Model) is defined by a .pax file. A .pax file defines which templates appear on that tab and other details, such as the tab name and template names that appear in the <b class="uiTerm">File New</b> dialog box, the application started by a selected template, etc.
      </p>
      <p class="para_topic">The following is an example of the XML in the .pax file that defines a template and the details of the XML elements used.</p><pre class="indent">  &lt;PaletteEntry id=&quot;d1&quot;&gt;
    &lt;References/&gt;
    &lt;Presentation name=&quot;Model&quot; description=&quot;Example Model Template&quot;&gt;
        &lt;PreviewImage type=&quot;UGPart&quot; location=&quot;model_inch.prt&quot;/&gt;
    &lt;/Presentation&gt;
    &lt;ObjectData class=&quot;ModelTemplate&quot;&gt;
      &lt;Filename&gt;model_inch.prt&lt;/Filename&gt;
      &lt;Units&gt;English&lt;/Units&gt;
      &lt;ItemType&gt;Item&lt;/ItemType&gt;
      &lt;RelationType&gt;master&lt;/RelationType&gt;
      &lt;UsesMasterModel&gt;yes&lt;/UsesMasterModel&gt;
    &lt;ObjectData&gt;
  &lt;/PaletteEntry&gt;
</pre><table cellpadding="2" cellspacing="4" width="95%" align="center">
         <colgroup span="1">
            <col span="1" width="54*">
            <col span="1" width="163*">
         </colgroup>
         <thead>
            <tr>
               <td align="center" bgcolor="silver" colspan="1" rowspan="1">
                  <p class="para_td">XML Element</p>
               </td>
               <td align="center" bgcolor="silver" colspan="1" rowspan="1">
                  <p class="para_td">Attributes</p>
               </td>
            </tr>
         </thead>
         <tbody>
            <tr bgcolor="#f0f0f0">
               <td colspan="1" rowspan="1" valign="top">
                  <p class="para_td"><b class="literalText">&lt;PaletteEntry&gt;</b></p>
               </td>
               <td colspan="1" rowspan="1" valign="top">
                  <p class="para_td"><b class="literalText">id</b> &ndash; Not used in the <b class="uiTerm">File New</b> dialog box. There is no requirement that the IDs have to be unique.
                  </p>
               </td>
            </tr>
            <tr bgcolor="#f0f0f0">
               <td colspan="1" rowspan="1" valign="top">
                  <p class="para_td"><b class="literalText">&lt;References&gt;</b></p>
               </td>
               <td bgcolor="#F4F4F4" colspan="1" rowspan="1" valign="top">
                  <p class="para_td">Not used in the <b class="uiTerm">File New</b> dialog box.
                  </p>
               </td>
            </tr>
            <tr>
               <td bgcolor="#F0F0F0" colspan="1" rowspan="2" valign="top">
                  <p class="para_td"><b class="literalText">&lt;Presentation&gt;</b></p>
               </td>
               <td bgcolor="#F4F4F4" colspan="1" rowspan="1" valign="top">
                  <p class="para_td"><b class="literalText">name</b> &ndash; The name of the template in the <b class="uiTerm">File New</b> dialog box. For example, Model, Assembly, Retro template names displayed in the <b class="uiTerm">Model</b> tab.
                  </p>
               </td>
            </tr>
            <tr>
               <td bgcolor="#F4F4F4" colspan="1" rowspan="1" valign="top">
                  <p class="para_td"><b class="literalText">description</b> &ndash; Used to provide a more detailed description for each template. Should not be more than two lines in length. This string autowraps.
                  </p>
               </td>
            </tr>
            <tr>
               <td bgcolor="#F0F0F0" colspan="1" rowspan="2" valign="top">
                  <p class="para_td"><b class="literalText">&lt;PreviewImage&gt;</b></p>
               </td>
               <td bgcolor="#F4F4F4" colspan="1" rowspan="1" valign="top">
                  <p class="para_td"><b class="literalText">type</b> &ndash; Not use in <b class="uiTerm">File New</b> processing.
                  </p>
               </td>
            </tr>
            <tr>
               <td bgcolor="#F4F4F4" colspan="1" rowspan="1" valign="top">
                  <p class="para_td"><b class="literalText">location</b> &ndash; This is the location of the file for the preview image.
                  </p>
                  <p class="para_td">The following file types are supported:</p>
                  <ul>
                     <li>
                        <p class="para_item">.prt, .fem, .sim: For these files, the preview image is extracted from the QAF preview image in the part file.</p>
                     </li>
                     <li>
                        <p class="para_item">.bkm, .plmxml: For these files, the preview image is extracted from the same file name, but with a .jpg extension.</p>
                     </li>
                     <li>
                        <p class="para_item">CLI names of the form: <b class="literalText">@DB/partname/revname</b>: The preview image is extracted from the QAF preview image in the part file.
                        </p>
                     </li>
                  </ul>
                  <table border="0">
                     <tr>
                        <td valign="top" align="left"><img align="left" src="../graphics/note.gif" alt="Note" title="Note"></td>
                        <td valign="bottom" align="left" width="100%">
                           <div class="para_note">
                              <p class="para_note_body">All file types, except .bmp, are supported for templates in native NX.</p>
                           </div>
                        </td>
                     </tr>
                  </table>
               </td>
            </tr>
            <tr>
               <td bgcolor="#F0F0F0" colspan="1" rowspan="1" valign="top">
                  <p class="para_td"><b class="literalText">&lt;ObjectData&gt;</b></p>
               </td>
               <td bgcolor="#F4F4F4" colspan="1" rowspan="1" valign="top">
                  <p class="para_td"><b class="literalText">class</b> &ndash; The value of this attribute identifies the application that is associated with this template. Valid values are:
                  </p>
                  <ul>
                     <li>
                        <p class="para_item">ModelTemplate</p>
                     </li>
                     <li>
                        <p class="para_item">AssemblyTemplate</p>
                     </li>
                     <li>
                        <p class="para_item">DrawingTemplate</p>
                     </li>
                     <li>
                        <p class="para_item">SheetTemplate</p>
                     </li>
                     <li>
                        <p class="para_item">CaeFemTemplate</p>
                     </li>
                     <li>
                        <p class="para_item">CaeSimTemplate</p>
                     </li>
                     <li>
                        <p class="para_item">RoutingLogicalTemplate</p>
                     </li>
                     <li>
                        <p class="para_item">RoutingElectricalTemplate</p>
                     </li>
                     <li>
                        <p class="para_item">RoutingMechanicalTemplate</p>
                     </li>
                     <li>
                        <p class="para_item">NXSheetMetalTemplate</p>
                     </li>
                     <li>
                        <p class="para_item">AeroSheetMetalTemplate</p>
                     </li>
                     <li>
                        <p class="para_item">FlexPCDSSheetMetalTemplate</p>
                     </li>
                     <li>
                        <p class="para_item">StudioTemplate</p>
                     </li>
                  </ul>
               </td>
            </tr>
            <tr>
               <td bgcolor="#F0F0F0" colspan="1" rowspan="1" valign="top">
                  <p class="para_td"><b class="literalText">&lt;Filename&gt;</b></p>
               </td>
               <td bgcolor="#F4F4F4" colspan="1" rowspan="1" valign="top">
                  <p class="para_td">This contains information about the template part file itself. It can be a full file specification containing directory and file information, or a file name alone.</p>
                  <p class="para_td">If it is a file name alone, the part is assumed to be also located in the same directory as the XML file. It is also possible for the file specification to contain environment variables, such as <b class="literalText">%UGII_XYZ_DIR%\template.prt</b>.
                  </p>
                  <p class="para_td">CLI names of the form: <b class="literalText">@DB/partname/revname</b> are the only accepted form in Teamcenter Integration.
                  </p>
               </td>
            </tr>
            <tr>
               <td bgcolor="#F0F0F0" colspan="1" rowspan="1" valign="top">
                  <p class="para_td"><b class="literalText">&lt;Units&gt;</b></p>
               </td>
               <td bgcolor="#F4F4F4" colspan="1" rowspan="1" valign="top">
                  <p class="para_td">This identifies the units of the template part. The value is English or Metric.</p>
               </td>
            </tr>
            <tr>
               <td bgcolor="#F0F0F0" colspan="1" rowspan="1" valign="top">
                  <p class="para_td"><b class="literalText">&lt;ItemType&gt;</b></p>
               </td>
               <td bgcolor="#F4F4F4" colspan="1" rowspan="1" valign="top">
                  <p class="para_td">This identifies the item type of the new file. Value can be any valid item type. Default is Item.</p>
               </td>
            </tr>
            <tr>
               <td bgcolor="#F0F0F0" colspan="1" rowspan="1" valign="top">
                  <p class="para_td"><b class="literalText">&lt;RelationType&gt;</b></p>
               </td>
               <td bgcolor="#F4F4F4" colspan="1" rowspan="1" valign="top">
                  <p class="para_td">This identifies the relation type of the new file. Value can be:</p>
                  <ul>
                     <li>
                        <p class="para_item">master</p>
                     </li>
                     <li>
                        <p class="para_item">specification</p>
                     </li>
                     <li>
                        <p class="para_item">manifestation</p>
                     </li>
                  </ul>
               </td>
            </tr>
            <tr>
               <td bgcolor="#F0F0F0" colspan="1" rowspan="1" valign="top">
                  <p class="para_td"><b class="literalText">&lt;UsesMasterModel&gt;</b></p>
               </td>
               <td bgcolor="#F4F4F4" colspan="1" rowspan="1" valign="top">
                  <p class="para_td">Set to TRUE if this template requires a master model to be specified.</p>
                  <p class="para_td">When a template is selected that has this set to TRUE, the <b class="uiTerm">Part to reference</b> group is active. <b class="uiTerm">OK</b> is unavailable until a master part is defined.
                  </p>
               </td>
            </tr>
         </tbody>
      </table><br></body>
</html>