<!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>Sample palette file</title>
      <script language="javaScript">
        abridged="false";
        function pageLoader() {}
        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_topic8" id="xps10_pagetitle">Sample palette file</div>
      <hr noshade="true">
      <table cellspacing="4" align="center">
         <tr valign="top">
            <td bgcolor="#f4f4f4" colspan="1" rowspan="1">
               <p class="para_td"><a class="links" href="javascript:void(0)" onclick="top.openFile('intro_to_nx/uiu_ab_pal_prt_ov.html');return(false);">Overview</a></p>
            </td>
            <td bgcolor="#f4f4f4" colspan="1" rowspan="1">
               <p class="para_td"><a class="links" href="javascript:void(0)" onclick="top.openFile('intro_to_nx/uiu_ab_pal_prt_p.html');return(false);">How To</a></p>
            </td>
            <td bgcolor="#f4f4f4" colspan="1" rowspan="1">
               <p class="para_td"><a class="links" href="javascript:void(0)" onclick="top.openFile('intro_to_nx/uiu_ab_pal_prt_rt.html');return(false);">Related Topics</a></p>
            </td>
         </tr>
      </table><br><p class="para_topic">This example shows a simple palette with one drawing template entry. Each sample section is previewed with text that explains the following section of code.</p>
      <p class="para_topic">This is the standard XML declaration.</p><pre class="indent">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;</pre><p class="para_topic">The following shows the palette header with reference information on the origin and schema version of the file. This file is auto-generated and contains an author tag documenting this.</p><pre class="indent">&lt;Palette xmlns=&quot;http://www.ugsolutions.com/Schemas/2002/UGPalettes&quot;     author=&quot;MyDatabase&quot;     schemaVersion=&quot;1.0&quot;&gt;</pre><p class="para_topic">The following shows information on the presentation of the whole palette, providing information for display in the browser and information to help NX handle the palette. Items like &quot;name&quot; can be used in either place.</p><pre class="indent">&lt;Presentation name=&quot;My Part Templates&quot;             application=&quot;UG_APP_MODELING&quot; bitmap=&quot;my_icon_1.bmp&quot;/&gt;</pre><p class="para_topic">The following shows information to enable the presentation of the palette entry. This is the heart of Palette XML. Note the palette entry id which has to be unique in this palette.</p><pre class="indent">&lt;PaletteEntry id=&quot;id1&quot;&gt;    &lt;Presentation name=&quot;A3 Drawing Template&quot;                  informationURI=&quot;http:/standards/retaining.html&quot;&gt;      &lt;PreviewImage type=&quot;UGPart&quot;                    location=&quot;MyA3Template.prt&quot;/&gt;    &lt;/Presentation&gt;</pre><p class="para_topic">Templates do not currently use references:</p><pre class="indent">&lt;References/&gt;</pre><p class="para_topic">The following shows the application-specific XML data for this entry. We recommend this basic filename form for all applications for simple file references. This is not covered by the schema of palette/xml.</p><pre class="indent">&lt;ObjectData class=&quot;DrawingTemplate&quot;&gt;       &lt;Filename&gt;MyA3Template.prt&lt;/Filename&gt;    &lt;/ObjectData&gt;  &lt;/PaletteEntry&gt; &lt;/Palette&gt;</pre></body>
</html>