<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">

<html>

<!--(==============================================================)-->
<!--(Document created with RoboEditor. )============================-->
<!--(==============================================================)-->

<head>

<title>Ask Expression Variable</title>

<!--(Meta)==========================================================-->

<meta name=generator content="RoboHELP by eHelp Corporation - www.ehelp.com">
<meta name=generator-major-version content=0.1>
<meta name=generator-minor-version content=1>
<meta name=filetype content=kadov>
<meta name=filetype-version content=1>
<meta name=page-count content=1>
<meta name=layout-height content=2477>
<meta name=layout-width content=563>
<meta name=date content="03 16, 2004 5:13:54 PM">


<!--(Links)=========================================================-->

<link rel="StyleSheet" href="../../css/main_styles.css">



<!--(Style Sheet)===================================================-->

<style>
<!--
body {background-color: #ffffff;}
-->
</style>


</head>

<!--(Body)==========================================================-->


<body class="bodydocs" onLoad="top.pageLoader()" bgcolor="#FFFFFF">


<h1>Ask Expression Variable</h1>

<h5 style="margin-left: 40px;">Procedure Name</h5>

<p CLASS=ListBulletTxt><span style="font-weight: bold;">MOM_ask_ess_exp_value 
 </span><span style="font-style: italic;"><span style="font-weight: bold;">&lt;variable_name&gt;</span></span></p>

<h5 style="margin-left: 40px;">Description</h5>

<p CLASS=ListBulletTxt>NX has as an Expression module. This allows users 
 to define variables and expressions and then use those variables as parameters 
 for entities such as Modeling features.</p>

<p CLASS=ListBulletTxt>This MOM function provides access to the variables 
 of the Expression module, i.e., it returns the value of the Expression 
 variable.</p>

<h5 style="margin-left: 40px;">Input</h5>

<p CLASS=ListBulletTxt>variable name</p>

<h5 style="margin-left: 40px;">Example</h5>

<p CLASS=ListBulletTxt>MOM_ask_ess_exp_value diameter</p>

<h1><a NAME=close_output></a>Close Output File</h1>

<h5 style="margin-left: 40px;">Procedure Name</h5>

<p CLASS=ListBulletTxt><span style="font-weight: bold;">MOM_close_output_file 
 &lt;</span><span style="font-style: italic;"><span style="font-weight: bold;">filename</span></span><span 
 style="font-weight: bold;">&gt;</span></p>

<h5 style="margin-left: 40px;">Description</h5>

<p CLASS=ListBulletTxt>This extension allows you to suspend writing output 
 to a particular file until it is opened again.</p>

<h5 style="margin-left: 40px;">Input</h5>

<p CLASS=ListBulletTxt>file name</p>

<h5 style="margin-left: 40px;">Example</h5>

<p CLASS=ListBulletTxt>MOM_close_output_file $mom_output_doc_file2</p>

<h1><a NAME=debug_mode></a>DEBUG Mode</h1>

<h5 style="margin-left: 40px;">Procedure Name</h5>

<p CLASS=ListBulletTxt><span style="font-weight: bold;">MOM_set_debug_mode 
 &lt;ON | OFF&gt;</span></p>

<h5 style="margin-left: 40px;">Description</h5>

<p CLASS=ListBulletTxt>This will activate, deactivate, and resume the debugger. 
 Like any TCL extension, this command may be called from any place in the 
 TCL script.</p>

<p CLASS=ListBulletTxt>If ON, the debugger will activate by initializing 
 with data entered in the debugger dialog or stdout.</p>

<p CLASS=ListBulletTxt>If OFF, the debugger will be deactivated.</p>

<h5 style="margin-left: 40px;">Input</h5>

<p CLASS=ListBulletTxt>debug attribute</p>

<h5 style="margin-left: 40px;">Example</h5>

<p CLASS=ListBulletTxt>MOM_set_debug_mode ON</p>

<p CLASS=ListBulletTxt>MOM_set_debug_mode OFF</p>

<h1><a NAME=do_temp></a>Do Template</h1>

<h5 style="margin-left: 40px;">Procedure Name</h5>

<p CLASS=ListBulletTxt><span style="font-weight: bold;">MOM_do_template 
 </span><span style="font-style: italic;"><span style="font-weight: bold;">&lt;template_name&gt; 
 </span></span><span style="font-weight: bold;">{BUFFER | CREATE}</span></p>

<h5 style="margin-left: 40px;">Description</h5>

<p CLASS=ListBulletTxt>Generate output based upon the Block Template <span 
 style="font-style: italic;">template_name<span style="font-weight: bold;">.</span></span></p>

<p CLASS=ListBulletTxt><span style="font-weight: bold;">BUFFER </span>has 
 the same meaning as before. <span style="font-weight: bold;">BUFFER</span> 
 will generate the output value for Block Template <span style="font-style: italic;">template_name</span> 
 but does not add it to the output buffer, and hence, does not output it 
 to the output file.</p>

<p CLASS=ListBulletTxt><span style="font-weight: bold;">CREATE</span> will 
 generate the value for Block Template <span style="font-style: italic;">template_name</span> 
 but does not output to the output buffer.</p>

<p CLASS=ListBulletTxt>This function returns the string created as the 
 result of the template name.</p>

<h5 style="margin-left: 40px;">Input</h5>

<p CLASS=ListBulletTxt>template name</p>

<h5 style="margin-left: 40px;">Example</h5>

<p CLASS=ListBulletTxt>MOM_do _template Linear</p>

<h1><a NAME=force></a>Force</h1>

<h5 style="margin-left: 40px;">Procedure Name</h5>

<p CLASS=ListBulletTxt><span style="font-weight: bold;">MOM_force &lt;Always 
 | Once | Off &gt; &lt; </span><span style="font-style: italic;"><span 
 style="font-weight: bold;">Address_1 ... Address_n&gt;</span></span></p>

<h5 style="margin-left: 40px;">Description</h5>

<p CLASS=ListBulletTxt>The next time that a block template that contains 
 a reference to any of the input address names is evaluated, the word that 
 contains that address will be output regardless of its modality attribute.</p>

<div style="margin-left: 80px;">
<!--(Table)=========================================================-->
<!--begin!kadov{{--><div align=left><!--}}end!kadov-->
<table x-use-null-cells
		wrapperparagraphselector=P.Paragraph
		style="border-spacing: 0px; float: alignleft;"
		cellspacing=0>

<tr>
<td style="x-cell-content-align: TOP;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top>
<p CLASS=CellTopic
	style="text-align: left; margin-bottom: 0;"
	align=left>User</td>
<td style="x-cell-content-align: TOP;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top>
<p>&nbsp;</td>
<td style="x-cell-content-align: TOP;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top>
<p CLASS=CellTopic
	style="text-align: left; margin-bottom: 0;"
	align=left>MOM Architecture</td>
<td style="x-cell-content-align: TOP;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top>
<p>&nbsp;</td></tr>

<tr>
<td style="x-cell-content-align: TOP;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top>
<p CLASS=CellDescrip
	style="text-align: left; margin-bottom: 0;"
	align=left>MOM_force</td>
<td style="x-cell-content-align: TOP;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top>
<p CLASS=CellDescrip
	style="text-align: left; margin-bottom: 0;"
	align=left>ONCE ----&gt;</td>
<td style="x-cell-content-align: TOP;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top>
<p CLASS=CellDescrip
	style="text-align: left; margin-bottom: 0;"
	align=left>MOM_suppress<br>
MOM_force</td>
<td style="x-cell-content-align: TOP;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top>
<p CLASS=CellDescrip
	style="text-align: left; margin-bottom: 0;"
	align=left>ONCE<br>
ONCE</td></tr>

<tr>
<td style="x-cell-content-align: TOP;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top>
<p CLASS=CellDescrip
	style="text-align: left; margin-bottom: 0;"
	align=left>MOM_force</td>
<td style="x-cell-content-align: TOP;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top>
<p CLASS=CellDescrip
	style="text-align: left; margin-bottom: 0;"
	align=left>OFF ----&gt;</td>
<td style="x-cell-content-align: TOP;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top>
<p CLASS=CellDescrip
	style="text-align: left; margin-bottom: 0;"
	align=left>MOM_force is set to </td>
<td style="x-cell-content-align: TOP;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top>
<p style="text-align: left; margin-bottom: 0;"
	align=left>OFF</td></tr>

<tr>
<td style="x-cell-content-align: TOP;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top>
<p CLASS=CellDescrip
	style="text-align: left; margin-bottom: 0;"
	align=left>MOM_force</td>
<td style="x-cell-content-align: TOP;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top>
<p CLASS=CellDescrip
	style="text-align: left; margin-bottom: 0;"
	align=left>ALWAYS----&gt;</td>
<td style="x-cell-content-align: TOP;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top>
<p CLASS=CellDescrip
	style="text-align: left; margin-bottom: 0;"
	align=left>MOM_suppress<br>
MOM_force is set to</td>
<td style="x-cell-content-align: TOP;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top>
<p CLASS=CellDescrip
	style="text-align: left; margin-bottom: 0;"
	align=left>OFF<br>
ALWAYS</td></tr>
</table>
<!--begin!kadov{{--></div><!--}}end!kadov-->
</div>

<h5 style="margin-left: 40px;">Input</h5>

<p CLASS=ListBulletTxt>modality attribute, address names</p>

<h5 style="margin-left: 40px;">Example</h5>

<p CLASS=ListBulletTxt>MOM_force_address Once X Y Z</p>

<h5>Address output with MOM_suppress OFF programmed in tcl (default state)</h5>

<!--(Table)=========================================================-->
<table x-use-null-cells
		style="x-cell-content-align: top; border-spacing: 3px;"
		cellspacing=3>
<col>
<col>
<col>
<col>

<tr valign=top>
<td style="padding-right: 10px;
			padding-left: 10px;
			background-color: #f2f2f2;
			border-left-style: none;
			border-right-style: none;
			border-bottom-style: none;
			border-top-style: none;"
	bgcolor=#F2F2F2>
<p>&nbsp;</td>
<td rowspan=1
	colspan=3
	style="padding-right: 10px;
			padding-left: 10px;
			background-color: #f2f2f2;
			border-right-style: none;
			border-bottom-style: none;
			border-top-style: none;"
	bgcolor=#F2F2F2>
<p class=ListBulletTxt
	style="margin-bottom: 0;">Programmed in tcl</td>
<td_null>
<td_null></tr>

<tr valign=top>
<td style="padding-right: 10px;
			padding-left: 10px;
			background-color: #f2f2f2;
			border-right-style: none;
			border-bottom-style: none;
			border-left-style: none;"
	bgcolor=#F2F2F2>
<p>Definition file</td>
<td style="padding-right: 10px;
			padding-left: 10px;
			background-color: #f2f2f2;
			border-right-style: none;
			border-bottom-style: none;"
	bgcolor=#F2F2F2>
<p>MOM_force ONCE</td>
<td style="padding-right: 10px;
			padding-left: 10px;
			background-color: #f2f2f2;
			border-right-style: none;
			border-bottom-style: none;"
	bgcolor=#F2F2F2>
<p>MOM_suppress ONCE</td>
<td style="padding-right: 10px;
			padding-left: 10px;
			background-color: #f2f2f2;
			border-right-style: none;
			border-bottom-style: none;"
	bgcolor=#F2F2F2>
<p><!--kadov_tag{{<spaces>}}-->&nbsp;<!--kadov_tag{{</spaces>}}-->Neither</td></tr>

<tr valign=top>
<td colspan=1
	rowspan=1
	style="padding-right: 10px;
			padding-left: 10px;
			background-color: #f2f2f2;
			border-right-style: none;
			border-bottom-style: none;
			border-left-style: none;"
	bgcolor=#F2F2F2>
<p>Force OFF(modal)</td>
<td colspan=1
	rowspan=1
	style="padding-right: 10px;
			padding-left: 10px;
			background-color: #f2f2f2;
			border-right-style: none;
			border-bottom-style: none;"
	bgcolor=#F2F2F2>
<p>Yes </td>
<td colspan=1
	rowspan=1
	style="padding-right: 10px;
			padding-left: 10px;
			background-color: #f2f2f2;
			border-right-style: none;
			border-bottom-style: none;"
	bgcolor=#F2F2F2>
<p>No</td>
<td colspan=1
	rowspan=1
	style="padding-right: 10px;
			padding-left: 10px;
			background-color: #f2f2f2;
			border-right-style: none;
			border-bottom-style: none;"
	bgcolor=#F2F2F2>
<p>If different</td></tr>

<tr valign=top>
<td style="padding-right: 10px;
			padding-left: 10px;
			background-color: #f2f2f2;
			border-right-style: none;
			border-bottom-style: none;
			border-left-style: none;"
	bgcolor=#F2F2F2>
<p>Force ALWAYS(non-modal)</td>
<td style="padding-right: 10px;
			padding-left: 10px;
			background-color: #f2f2f2;
			border-right-style: none;
			border-bottom-style: none;"
	bgcolor=#F2F2F2>
<p>Yes </td>
<td style="padding-right: 10px;
			padding-left: 10px;
			background-color: #f2f2f2;
			border-right-style: none;
			border-bottom-style: none;"
	bgcolor=#F2F2F2>
<p>No</td>
<td style="padding-right: 10px;
			padding-left: 10px;
			background-color: #f2f2f2;
			border-right-style: none;
			border-bottom-style: none;"
	bgcolor=#F2F2F2>
<p>Yes</td></tr>
</table>

<p class=ListBulletTxt
	style="margin-bottom: 0;">&nbsp;</p>

<p class=ListBulletTxt
	style="margin-bottom: 0;">If both MOM_force ONCE and MOM_suppress once 
 are programmed, the last one will take effect.</p>

<p class=ListBulletTxt
	style="margin-bottom: 0;">If MOM_suppress ALWAYS is programmed, the 
 address will never be output. All MOM_force ONCE and MOM_suppress ONCE 
 commands are ignored. </p>

<p class=ListBulletTxt
	style="margin-bottom: 0;">In the definition file, Force OFF or Force 
 ALWAYS should define the modality of the address. Using MOM_force OFF 
 or MOM_force ALWAYS to redefine the modality in the tcl is not recommended.</p>

<p class=ListBulletTxt
	style="margin-bottom: 0;">&nbsp;</p>

<h1><a NAME=force_block></a>Force Block</h1>

<h5 style="margin-left: 40px;">Procedure Name</h5>

<p CLASS=ListBulletTxt><span style="font-weight: bold;">MOM_force_block 
 &lt;Always | Once | Off &gt; &lt;Block</span><span style="font-style: italic;"><span 
 style="font-weight: bold;">_1 ... Block_n&gt;</span></span></p>

<h5 style="margin-left: 40px;">Description</h5>

<!--(Table)=========================================================-->
<table x-use-null-cells
		wrapperparagraphselector=P.Paragraph
		style="border-spacing: 0px;"
		cellspacing=0>

<tr>
<td style="x-cell-content-align: TOP;
			width: 25%;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top>
<p CLASS=CellTopic
	style="text-align: left; margin-bottom: 0;"
	align=left>User</td>
<td style="x-cell-content-align: TOP;
			width: 25%;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top>
<p>&nbsp;</td>
<td style="x-cell-content-align: TOP;
			width: 25%;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top>
<p CLASS=CellTopic
	style="text-align: left; margin-bottom: 0;"
	align=left>MOM Architecture</td>
<td style="x-cell-content-align: TOP;
			width: 25%;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top>
<p>&nbsp;</td></tr>

<tr>
<td style="x-cell-content-align: TOP;
			width: 25%;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top>
<p CLASS=CellDescrip
	style="text-align: left; margin-bottom: 0;"
	align=left>MOM_force</td>
<td style="x-cell-content-align: TOP;
			width: 25%;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top>
<p CLASS=CellDescrip
	style="text-align: left; margin-bottom: 0;"
	align=left>ONCE ----&gt;</td>
<td style="x-cell-content-align: TOP;
			width: 25%;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top>
<p CLASS=CellDescrip
	style="text-align: left; margin-bottom: 0;"
	align=left>MOM_suppress<br>
MOM_force</td>
<td style="x-cell-content-align: TOP;
			width: 25%;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top>
<p CLASS=CellDescrip
	style="text-align: left; margin-bottom: 0;"
	align=left>ONCE<br>
ONCE</td></tr>

<tr>
<td style="x-cell-content-align: TOP;
			width: 25%;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top>
<p CLASS=CellDescrip
	style="text-align: left; margin-bottom: 0;"
	align=left>MOM_force</td>
<td style="x-cell-content-align: TOP;
			width: 25%;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top>
<p CLASS=CellDescrip
	style="text-align: left; margin-bottom: 0;"
	align=left>OFF ----&gt;</td>
<td style="x-cell-content-align: TOP;
			width: 25%;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top>
<p CLASS=CellDescrip
	style="text-align: left; margin-bottom: 0;"
	align=left>MOM_force is set to </td>
<td style="x-cell-content-align: TOP;
			width: 25%;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top>
<p CLASS=CellDescrip
	style="text-align: left; margin-bottom: 0;"
	align=left>OFF</td></tr>

<tr>
<td style="x-cell-content-align: TOP;
			width: 25%;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top>
<p CLASS=CellDescrip
	style="text-align: left; margin-bottom: 0;"
	align=left>MOM_force</td>
<td style="x-cell-content-align: TOP;
			width: 25%;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top>
<p CLASS=CellDescrip
	style="text-align: left; margin-bottom: 0;"
	align=left>ALWAYS----&gt;</td>
<td style="x-cell-content-align: TOP;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top>
<p CLASS=CellDescrip
	style="text-align: left; margin-bottom: 0;"
	align=left>MOM_suppress<br>
MOM_force is set to</td>
<td style="x-cell-content-align: TOP;
			width: 25%;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top>
<p CLASS=CellDescrip
	style="text-align: left; margin-bottom: 0;"
	align=left>OFF<br>
ALWAYS</td></tr>
</table>

<h5 style="margin-left: 40px;">Input</h5>

<p CLASS=ListBulletTxt>modality attribute, block names</p>

<h5 style="margin-left: 40px;">Example</h5>

<p CLASS=ListBulletTxt
	style="margin-bottom: 0;">MOM_force_block Once linear </p>

</body>

</html>
