<!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>Using Statements</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">Using Statements </div>
      <hr noshade="true">
      <p class="para_topic">You can use text literals to describe the header, body or footer. The text can contain literals, variables and Tcl  <a class="links" href="javascript:void(0)" onclick="top.openFile('mfggeneral/main_comands.html');return(false);">commands</a>. The following is an example of how this is done:
      </p><pre class="indent">&nbsp;[MOM_cycle_objects {OPER HDRT='Operation List' &nbsp; HDRT='**************' &nbsp; HDRT=' ' &nbsp; HDRT='---------------------------------------' &nbsp; BDYT='Operation: $mom_operation_name $mom_operation_type' FTRT='---------------------------------------' &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;{TOOL &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;BDYT=' Tool: &nbsp;$mom_tool_name' &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;BDYT=' Diameter: $mom_tool_diameter' &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;BDYT=' Length: $mom_tool_length' FTRT=' ' &nbsp; } &nbsp; } ] </pre><div class="title_division">Result</div>
      <p class="para_division">For an NX part containing two CAM Operations, the result is as follows:</p>
      <p class="para_division">Operation List **************</p><pre class="indent">-------------------------------------
Operation: p1 Rough Pocket
&nbsp; Tool: T1 &nbsp; Diameter: 2.0 &nbsp; Length: 6.0
Operation: p2 Finish Pocket &nbsp; Tool: T2 &nbsp; Diameter: 1.0 &nbsp; Length: 4.0 &nbsp; ---------------------------------------</pre><div class="title_division"> Using Text Files</div>
      <p class="para_division">You can also read the text from an external files as shown in this example. </p><pre class="indent">&nbsp;[MOM_cycle_objects {OPER HDRF='my_header.txt' &nbsp; BDYT='Operation: $mom_operation_name $mom_operation_type' FTRT='---------------------------------------' &nbsp; &nbsp;&nbsp;&nbsp;{TOOL &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;BDYF=' my_body.txt' FTRT=' ' &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;} &nbsp; } ]
&nbsp;</pre><div class="title_division">File my_header.txt</div><pre class="indent">&nbsp;&nbsp;&nbsp;Operation List ************** --------------------------------------
&nbsp;</pre><div class="title_division">File my_body.txt</div><pre class="indent">&nbsp; Tool: &nbsp;$mom_tool_name Diameter:&nbsp;$mom_tool_diameter &nbsp; Length:&nbsp;$mom_tool_length</pre><p class="para_division">The output is the same as the first example.</p>
   </body>
</html>