<!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>Setting File Extensions</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_topic7" id="xps10_pagetitle">Setting File Extensions</div>
      <hr noshade="true">
      <p class="para_topic">When customizing your own shop documentation you can specify the output file extension, such as txt or html. If you do not specify an extension, the system uses txt by default and no file extension is displayed in the dialog. Specify the extension in the Event Handler and Definition file. </p>
      <p class="para_topic">To set your own file extension use the method below. </p>
      <p class="para_topic">In the beginning of the Event Handler (.tcl), insert the following commands:</p><pre class="indent">set mom_source_directory [MOM_ask_env_var UGII_CAM_SHOP_DOC_DIR]
source &quot;$mom_source_directory/shopdoc_header.tcl&quot;
&nbsp;
#=============================================================================
proc MOM_Start_Part_Documentation {} {
#=============================================================================
&nbsp;&nbsp;&nbsp;&nbsp;global mom_sys_output_file_suffix
&nbsp;&nbsp;&nbsp;&nbsp;set mom_sys_output_file_suffix &quot;txt&quot;
&nbsp;&nbsp;&nbsp;&nbsp;Open_Files
}</pre><p class="para_topic">Change the file extension by modifying the line &quot;set mom_sys_output_file_suffix&quot; above. Change &quot;txt&quot; to the default extension of your choice.</p>
      <p class="para_topic">In the beginning of the Template file (.tpl), insert the following command:</p><pre class="indent">[MOM_Start_Part_Documentation]</pre></body>
</html>