<!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>Slot feature standards</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_topic4" id="xps10_pagetitle">Slot feature standards</div>
      <hr noshade="true">
      <table cellspacing="3" align="center">
         <tr valign="top">
            <td bgcolor="#f7f7f7" colspan="1" rowspan="1">
               <p class="para_td"><a class="links" href="javascript:void(0)" onclick="top.openFile('sheetmetaldes/stand_ov.html');return(false);">Standards</a></p>
            </td>
            <td bgcolor="#F7F7F7" colspan="1" rowspan="1">
               <p class="para_td"><a class="links" href="javascript:void(0)" onclick="top.openFile('sheetmetaldes/stand_def.html');return(false);">How To</a></p>
            </td>
            <td bgcolor="#F7F7F7" colspan="1" rowspan="1">
               <p class="para_td">Options</p>
            </td>
         </tr>
      </table><br><p class="para_topic">You can query the sheet metal slot standards as illustrated below. The arguments appear in the order given. The material and thickness arguments send in every query to simplify the logic required in the standards file.</p>
      <p class="para_topic">smdstd &quot;smslot ask_std LENGTH MATERIAL xxx</p>
      <p class="para_topic">&nbsp; THICKNESS value&quot;</p>
      <p class="para_topic">smdstd &quot;smslot ask_std DEPTH MATERIAL xxx</p>
      <p class="para_topic">&nbsp; THICKNESS value&quot;</p>
      <p class="para_topic">smdstd &quot;smslot ask_std WIDTH MATERIAL xxx</p>
      <p class="para_topic">&nbsp; THICKNESS value&quot;</p>
      <p class="para_topic">The standards are checked as described below.</p>
      <p class="para_topic">smdstd &quot;smslot chk_std smslot&ndash;id MATERIAL xxx</p>
      <p class="para_topic">&nbsp; THICKNESS value LENGTH value DEPTH value</p>
      <p class="para_topic">&nbsp; WIDTH value</p>
      <p class="para_topic">The following is an excerpt from a Tcl procedure for the slot, which utilizes the material type for the slot size.</p>
      <table cellspacing="3" align="center">
         <tr valign="top">
            <td colspan="1" rowspan="1" valign="top">
               <p class="para_td">#-------------------------------------------------------------------</p>
               <p class="para_td">#</p>
               <p class="para_td"># proc smslot</p>
               <p class="para_td">#</p>
               <p class="para_td"># This proc is used to set the sheet metal slot standards</p>
               <p class="para_td"># for your site. These standards include length, width and depth.</p>
               <p class="para_td">#</p>
               <p class="para_td"># All standards will be listed in scrolled windows in the</p>
               <p class="para_td"># application in the order in which the names appear in their</p>
               <p class="para_td"># value list.</p>
               <p class="para_td">#</p>
               <p class="para_td"># The standards are further defined in the Sheet Metal Features and Forming/FlatteningHelp,</p>
               <p class="para_td"># but you can use the supplied standard values as a guide.</p>
               <p class="para_td">#</p>
               <p class="para_td"># You should only change &quot;set ret &quot; lines in this proc.</p>
               <p class="para_td"># Changing other lines may cause the logic of the procedure</p>
               <p class="para_td"># to change.</p>
               <p class="para_td">#</p>
               <p class="para_td">#-------------------------------------------------------------------</p>
               <p class="para_td">proc smslot {cmd} {</p>
               <p class="para_td">&nbsp; set parms {LENGTH DEPTH WIDTH}</p>
               <p class="para_td">&nbsp; set ret &quot;error: unknown&quot;</p>
               <p class="para_td">&nbsp; set error &quot;&quot;</p>
               <p class="para_td">&nbsp; set note &quot;&quot;</p>
               <p class="para_td"># Scan the command to get the method and the parameters</p>
               <p class="para_td">&nbsp; if { [scan $cmd &quot;%s %s %s %s %s %s&quot; method varnam c_mat mat_val \</p>
               <p class="para_td">&nbsp; c_thick thick_val ] != 6 } {</p>
               <p class="para_td">&nbsp; set method invalidarg</p>
               <p class="para_td">&nbsp; }</p>
               <p class="para_td"># Set the return values for the standard parameters</p>
               <p class="para_td">&nbsp; set LENGTH { set ret &quot;vallist: 0.50 0.75 1.00 1.50 2.00&quot;}</p>
               <p class="para_td">&nbsp; set WIDTH {</p>
               <p class="para_td">&nbsp; switch $mat_val {</p>
               <p class="para_td">&nbsp; steel {</p>
               <p class="para_td">&nbsp; set ret &quot;vallist: .50 .75 1.00&quot;</p>
               <p class="para_td">&nbsp; }</p>
               <p class="para_td">&nbsp; aluminum {</p>
               <p class="para_td">&nbsp; set ret &quot;vallist: .25 .50 .75 1.00&quot;</p>
               <p class="para_td">&nbsp; }</p>
               <p class="para_td">&nbsp; stainless_steel {</p>
               <p class="para_td">&nbsp; set ret &quot;vallist: .50 .75 1.00 1.25 1.5&quot;</p>
               <p class="para_td">&nbsp; }</p>
               <p class="para_td">&nbsp; default {</p>
               <p class="para_td">&nbsp; set ret &quot;vallist: .25 .50 .75 1.00 1.25 1.5&quot;</p>
               <p class="para_td">&nbsp; }</p>
               <p class="para_td">&nbsp; }</p>
               <p class="para_td">&nbsp; }</p>
            </td>
         </tr>
      </table><br></body>
</html>