<!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>Creating and Using Template Sets</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_topic2" id="xps10_pagetitle">Creating and Using Template Sets</div>
      <hr noshade="true">
      <div class="title_division">How to Create a Template Set</div>
      <p class="para_division">Template Sets are useful because they make Template Part Files available for selection from within the dialog boxes, preventing you from having to browse for individual parts. A Template Set is an ASCII text file that lists the Part files containing templates as illustrated below. The default Template Set is determined by the Configuration File.</p>
      <p align="center"><img align="bottom" src="graphics/cust_temp_creatfr06.gif"></p>
      <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">If you are in a Teamcenter environment, or if your configuration includes LIBRARY_SETUP_TEMPLATE, such as cam_library, then the list of template parts comes from the library and not the .opt file. See  <a class="links" href="javascript:void(0)" onclick="top.openFile('mfggeneral/cust_data_manag.html');return(false);">Data Management</a> for more information.
                  </p>
               </div>
            </td>
         </tr>
      </table>
      <p class="para_division">Each Part file usually contains several Operations and Groups. A Drill Part file, for example, may contain a Center Drill, Drill, and Ream Operation. If too many template operations of the same type in a single part file are created, the Create dialogs can become too tall for the user interface. </p>
      <p class="para_division">When you create Operations or groups to be saved in the Part file, you may also want to customize the appearance of the Operation dialog box so that only those options appear when you later create Operations using the Template. Be sure to verify that Template (in the Template Setting dialog, MB3&rarr;Object&rarr;Template Setting) has been toggled ON.</p>
      <p class="para_division">Once the Template Part files have been created and saved, you will group them together logically into Template Sets. A Template Set is defined by creating an ASCII text file as illustrated below. This text file must contain the path name and the file name of each Template Part file in the set, and must be saved with a .opt extension. You may insert commentary text after ## characters.</p>
      <div class="figure">
         <p align="center"><img align="bottom" src="graphics/cust_temp_creatfr05.gif"></p>
      </div>
      <div class="title_figure">ASCII Text File Defining a Template Set</div>
      <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">English and Metric template files are mutually exclusive. This is intentional, as it allows Operation defaults for either English or Metric units.</p>
               </div>
            </td>
         </tr>
      </table>
      <p class="para_division">Save the ASCII text file in the desired directory. Be sure to include the .opt extension. In this example the text file is saved as: /cam/temp/templ1.opt .</p>
      <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">You can embed environmental variables in the Part file name.</p>
               </div>
            </td>
         </tr>
      </table>
      <p class="para_division">Once Template Sets have been created, you may select which set to use when creating new Operations. For this example, we will assume that the following Template Sets have been created:</p>
      <p class="para_division">/cam/temp/templ1.opt /cam/temp/templ2.opt /cam/temp/templ3.opt</p>
      <div class="title_division">How to Select a Template Set</div>
      <p class="para_division">You may choose which of the above Template Sets to use by selecting Preferences&rarr;CAM General and then selecting Specify Template Set in the Operation Create Options section (illustrated below) of the General CAM Preferences dialog box. Only one Template Set may be specified.</p>
      <p align="center"><img align="bottom" src="graphics/cust_temp_creatfr04.gif"></p>
      <p class="para_division">Specify Template Set will display the Template Set Selection dialog box illustrated below.</p>
      <p align="center"><img align="bottom" src="graphics/cust_temp_creatfr03.gif"></p>
      <p class="para_division">Specify the appropriate directory and select the desired Template Set from the Files listing. The selected Template Set appears in the &quot;File Name:&quot; field as illustrated above. For this example, templ1.opt is selected. Select OK to accept it. The &quot;Template Set:&quot; field under Operation Create Options changes to reflect the name of the selected Template Set (templ1).</p>
      <p class="para_division">Select OK in the General CAM Preferences dialog box. This causes the system to scan the Template Part files in the selected set to determine which have matching units (inch/metric) and to define the Type and Subtype options that will appear in the Operation and Group creation dialog boxes. When a Template is retrieved, some parameters are reoriented based on the the Reference Coordinate System (RCS) found in the MCS or other geometry orientation groups. The system will continue to use the specified Template Set for the remainder of your logon session or until you specify another Template Set.</p>
      <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">Although the Status line indicates that the Template Part files are being &quot;Loaded&quot;, they are actually being &quot;scanned&quot; to check the units and to define the Type and Subtype options that will appear in the Operation Definition section of the Operation Parameters dialog box. The Template Part files are not being &quot;loaded&quot; in the usual sense of the word in that they are not being copied in as data sets.</p>
               </div>
            </td>
         </tr>
      </table>
      <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">While in manufacturing, the template part that is currently selected will be open throughout the session.</p>
               </div>
            </td>
         </tr>
      </table>
      <div class="title_division">How to Select a Template</div>
      <p class="para_division">The Template Set you have selected determines the Type options and the available Subtype icons that will appear in both the Create Operation and Create Group dialog boxes.</p>
      <p class="para_division">The Type options correspond to the Template Part file names. The Subtype options (icons) correspond to the Operation and Group names within the Template Part file (Type). The selected Type determines which Subtype options (icons) are available.</p>
      <p class="para_division">The Name field indicates the name that will be used when you create the operation or group.</p>
      <p class="para_division">Tools will only be created with an operation if the operation template has Load with Parent toggled ON. If the template loads a tool with the same name but different parameters as a tool in the current Part file, a new tool with different name is created and is associated with the new operation.</p>
      <p class="para_division">Once you have specified the Type and Subtype, select OK or Apply to make a new Operation or Group that uses the parameters defined by the Type and Subtype.</p>
      <div class="title_division">How to Reset Back to the System Default Template Set</div>
      <p class="para_division">You can reset the currently active Template Set back to the Standard Operation Template Set using the Default Template Set button in the General CAM Preferences dialog. The name of the Template Set is displayed next to the &quot;Template Set:&quot; label. The default Template Set is determined by the Configuration File. You may also change the active Template Set by specifying a different Configuration File using the Specify Configuration File button.</p>
      <div class="title_division">Summary</div>
      <p class="para_division">Here is a summary of key points and a diagram that illustrates how the various aspects of Templates relate to one another.</p>
      <ul>
         <li>
            <p class="para_item">A Template is an Operation or Group saved in a Template Part File.</p>
         </li>
         <li>
            <p class="para_item">A Template Part file is Part file containing CAM Operations and Groups with specific pre-defined parameters and customized dialogs.</p>
         </li>
         <li>
            <p class="para_item">A Template Set is a collection (logical grouping) of Template Part files. It is an ASCII text file with an .opt extension.</p>
         </li>
         <li>
            <p class="para_item">The specified Template Set determines the Type options and Subtype icons you have to select from when creating a new Operation or Group.</p>
         </li>
         <li>
            <p class="para_item">All new CAM Operations and Groups are defined using Templates.</p>
         </li>
         <li>
            <p class="para_item">Templates are useful because they prevent you from having to redefine parameters from a set of standard system defaults each time you begin a new Operation or Group.</p>
         </li>
      </ul>
      <p align="center"><img align="bottom" src="graphics/cust_ops1fi01.gif"></p>
   </body>
</html>