<!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>Simple hole 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">Simple hole 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 hole 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;simple_smhole ask_std DIAMETER MATERIAL xxx</p>
      <p class="para_topic">&nbsp; THICKNESS value&quot;</p>
      <p class="para_topic">smdstd &quot;simple_smhole ask_std DEPTH MATERIAL xxx</p>
      <p class="para_topic">&nbsp; THICKNESS value&quot;</p>
      <p class="para_topic">smdstd &quot;simple_smhole ask_std TIP_ANGLE 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;simple_smhole chk_std smhole&ndash;id MATERIAL xxx</p>
      <p class="para_topic">&nbsp; THICKNESS value DIAMETER value DEPTH value</p>
      <p class="para_topic">&nbsp; TIP_ANGLE value</p>
      <p class="para_topic">The following is an excerpt from a Tcl procedure for the hole, which utilizes the material type for the hole 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 simple_smhole</p>
               <p class="para_td">#</p>
               <p class="para_td"># This proc is used to set the simple sheet metal hole standards</p>
               <p class="para_td"># for your site. These standards include diameter 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 simple_smhole {cmd} {</p>
               <p class="para_td">&nbsp; set parms {DIAMETER DEPTH TIP_ANGLE}</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 DIAMETER {</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: .100 .200&quot;</p>
               <p class="para_td">&nbsp; }</p>
               <p class="para_td">&nbsp; aluminum {</p>
               <p class="para_td">&nbsp; set ret &quot;vallist: .100 .200 .250 .500 .750 .825&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: .100 .200 .250 .500 .750 1.00 1.25&quot;</p>
               <p class="para_td">&nbsp; }</p>
               <p class="para_td">&nbsp; default {</p>
               <p class="para_td">&nbsp; set ret &quot;vallist: .100 .200 .250 .375 .500 .625 .750&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>