<!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>Shop Documentation Template Data File</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_topic5" id="xps10_pagetitle"> Shop Documentation Template Data File</div>
      <hr noshade="true">
      <p class="para_topic">The shop_doc.dat file contains the files that are listed in the Manufacturing Parts Report dialog. The shop_doc.dat is the controlling file for all of the Shop Documentation templates. This file organizes the formats into the order in which they appear in the Manufacturing Part Reports scrolling dialog and controls the look of their output. Below is an example of what the shop_doc.dat file looks like. </p>
      <p class="para_topic">Operation List (TEXT), ${UGII_CAM_SHOP+DOC_DIR}shopdoc_programview_text.tcl,</p>
      <p class="para_topic">Operation List (HTML), ${UGII_CAM_SHOP+DOC_DIR}shopdoc_programview_html.tcl,</p>
      <p class="para_topic">Tool List (TEXT), ${UGII_CAM_SHOP_DOC_DIR}tool_list.tcl,</p>
      <p class="para_topic">Tool List (HTML), ${UGII_CAM_SHOP_DOC_DIR}tool_list_html.tcl,</p>
      <p class="para_topic">Operation List by Method (TEXT), ${UGII_CAM_SHOP_DOC_DIR}shopdoc_methodview_text.tcl,</p>
      <p class="para_topic">Operation List by Method (TEXT), ${UGII_CAM_SHOP_DOC_DIR}shopdoc_methodview_text_html.tcl,</p>
      <p class="para_topic">Unique Tool List By Program (TEXT), ${UGII_CAM_SHOP_DOC_DIR}unique_tool_progview.tcl,</p>
      <p class="para_topic">Unique Tool List By Program (HTML), ${UGII_CAM_SHOP_DOC_DIR}unique_tool_progview_html.tcl,</p>
      <p class="para_topic">Advanced Operation List (HTML),${UGII_CAM_SHOP_DOC_DIR}general_template.tcl,</p>
      <p class="para_topic">Tools and Operations (HTML), ${UGII_CAM_SHOP_DOC_DIR}general_template.tcl,</p>
      <p class="para_topic">Advanced Web Page (HTML), ${UGII_CAM_SHOP_DOC_DIR}mill_shopdoc_html.tcs,</p>
      <p class="para_topic">Export Tool Library to ASCII datafile, ${UGII_UG_LIBRARY_DIR}export_tools_to_ascii.tcl,</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">  WARNING: Prior to the first time you customize any files make a copy of the entire shop_doc directory and give it a different name. All customizing changes should be made in this new directory. Otherwise, when a new version of NX is loaded, it overrides all your customized changes. Update the environment variable called ugii_CAM_SHOP_DOC_DIR in the ugii environment file to point to your new directory.</p>
               </div>
            </td>
         </tr>
      </table>
      <div class="title_division">Making Changes To The File</div>
      <p class="para_division">If you rearrange, add or &nbsp;delete items from this file, this changes the display order in the Manufacturing Part Reports scrolling dialog. If the Tool List (HTML) preformatted template &nbsp;is never used by your company, just delete it from this list in the shop_doc.dat file and it no longer appears in the Manufacturing Part Reports dialog.</p>
      <p class="para_division">For each preformatted template in the shop_doc.dat, two files are specified: the Template File, and the Event Handler. The Template file can be identified by the extension .tpl and the Event Handler can be identified by the extension .tcl. All of these Template files and Event Handler files as well as the shop_doc.dat files must be located in the ugii_CAM_SHOP_DOC_DIR directory or contain complete file paths. The following are some suggestions for customization:</p>
      <ul>
         <li>
            <p class="para_item">To make small changes to an existing format, you can edit the existing Template file.</p>
         </li>
         <li>
            <p class="para_item">For larger changes you can make a copy of the Event Handler and Template file and add a new entry to the .dat file. Then make a change to the copies.</p>
         </li>
      </ul>
      <div class="title_division">Configuration File</div>
      <p class="para_division">To customize the available formats in the Shop Documentation scroll bar, make all your changes in shop_doc.dat, which is in the Configuration &nbsp;file (Preferences &gt; CAM General &gt; Specify Configuration File).</p>
      <p class="para_division">The Configuration file is a list of all customizable options within CAM. One of the options within the Configuration file is TEMPLATE_SHOPDOCS. TEMPLATES_SHOPDOCS is a link to shop_doc.dat. The directory where this controlling file is located is also where all of the files (including all template files, event handler files, and controlling files) relating to Shop Documentation are located. In the standard system installation this directory is called shop_doc.</p>
      <table border="0">
         <tr>
            <td valign="top" align="left"><img align="left" src="../graphics/warning.gif" alt="Warning" title="Warning"></td>
            <td valign="bottom" align="left" width="100%">
               <div class="para_warning">
                  <p class="para_warning_body">  WARNING: Remember, if you are making any changes in the dialog it is easiest to keep all the Template and Event Handler files in the shop_docs directory. If you do not do this, you will receive an error and your customizations will not work.</p>
               </div>
            </td>
         </tr>
      </table>
   </body>
</html>