<!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>Commands</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">Commands</div>
      <hr noshade="true">
      <p class="para_topic">Commands tell the system to take an action. When you use Tcl commands you must enclose them in brackets [...]. These commands can be standard Tcl, or MOM extensions. MOM extension commands all begin with MOM_. The three main MOM extension commands are: MOM_cycle_object, MOM_list_oper_path, and MOM_do_template_file.</p>
      <p class="para_topic"><a class="links" href="javascript:void(0)" onclick="top.openFile('mfggeneral/main_mom_cycle_objects.html');return(false);">MOM_cycle_object</a></p>
      <p class="para_topic">This is the most essential MOM command. Click the link to learn more about it.</p>
      <div class="title_division">MOM_list_oper_path &lt;operation_name&gt; &lt;event_handler&gt; &lt;definition_file&gt; &lt;output_file&gt;</div>
      <p class="para_division">This command lists the tool path of an operation. It allows you to customize how the tool paths are listed.</p>
      <p class="para_division">This command allows you to postprocess an operation using an existing postprocessor (Tcl and Def file). You can use it to include the actual machine code in the output, or to capture the output of user defined events. If the output file is not specified, the system uses the output file. </p>
      <p class="para_division">Here is an example of its use to list a path in the CLSF format:</p><pre class="indent">set list_tcl [MOM_ask_env_var UGII_CAM_TOOL_PATH_DIR]clsf.tcl
set list_def [MOM_ask_env_var UGII_CAM_TOOL_PATH_DIR]clsf.def
MOM_list_oper_path $mom_operation_name $list_tcl $list_def 
&nbsp;</pre><div class="title_division">MOM_do_template_file &lt;template_file&gt;</div>
      <p class="para_division">This command reads and evaluates a template file.</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 use HDRF='filename', BDYF='filename', or FTRF='filename' then MOM_do_template_file is invoked automatically with filename as its argument.</p>
               </div>
            </td>
         </tr>
      </table>
      <p class="para_division"><a class="links" href="javascript:void(0)" onclick="top.openFile('mfggeneral/main_list_comands.html');return(false);">List of MOM Commands</a> There are many other MOM commands that work for Shopdocs. Click the link to view the list.
      </p>
   </body>
</html>