<!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>Part 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_topic3" id="xps10_pagetitle">Part 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">How To</p>
            </td>
            <td bgcolor="#F7F7F7" colspan="1" rowspan="1">
               <p class="para_td"><a class="links" href="javascript:void(0)" onclick="top.openFile('sheetmetaldes/standards_stand_fea.html');return(false);">Options</a></p>
            </td>
         </tr>
      </table><br><p class="para_topic">The part level sheet metal attribute standards of material and thickness are as follows. The material and thickness arguments send in every query to simplify the logic required in the standards file.</p>
      <table cellspacing="3" align="center">
         <tr valign="top">
            <td colspan="1" rowspan="1" valign="top">
               <p class="para_td">smdstd &quot;part ask_std MATERIAL MATERIAL xxx</p>
               <p class="para_td">&nbsp; THICKNESS value&quot;</p>
               <p class="para_td">smdstd &quot;part ask_std THICKNESS MATERIAL xxx</p>
               <p class="para_td">&nbsp; THICKNESS value&quot;</p>
               <p class="para_td">The part standards are checked as follows:smdstd &quot;part chk_std partname MATERIAL xxx</p>
               <p class="para_td">&nbsp; THICKNESS value&quot;</p>
               <p class="para_td">The following is an excerpt from a sample Tcl procedure for part level standards.</p>
               <p class="para_td">#</p>
               <p class="para_td">#</p>
               <p class="para_td"># proc part</p>
               <p class="para_td">#</p>
               <p class="para_td"># This proc is used to set the part standards for your site.</p>
               <p class="para_td"># These standards include material and thickness. The value lists should be of the # form:</p>
               <p class="para_td">#</p>
               <p class="para_td"># set VARNAM (set ret &quot;callist:value_1 value_2value _n&quot;)</p>
               <p class="para_td">#</p>
               <p class="para_td"># were everything but the &quot;VARNUM&quot; and &quot;value&quot; strings should be exactly as # shown. See MATERIAL and THICKNESS below for examples. In the default # version, the standard materials are aluminum, steel, and stainless steel. Notice # that the material names cannot contain whitespaces or new lines. The names are # case sensitive.</p>
               <p class="para_td">#</p>
               <p class="para_td"># The standards are further defined in the Sheet Metal Features and Forming/Flattening Help, 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 the &quot;set ret&quot; lines in this proc.</p>
               <p class="para_td"># Changing the other lines may cause the logic of the procedure to change.</p>
               <p class="para_td">#--------------------------------------</p>
               <p class="para_td">proc part (cnd) {</p>
               <p class="para_td">&nbsp; set parms (MATERIAL THICKNESS)</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;</p>
               <p class="para_td"># Scan the command first to get the method: either ask_std or chk_std</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 MATERIAL {set ret &quot;vallist: steel stainless_steel aluminum&quot;}</p>
               <p class="para_td">&nbsp; set THICKNESS {</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: .030 .050 .070&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: .030 .040 .050&quot;</p>
               <p class="para_td">&nbsp; }</p>
               <p class="para_td">&nbsp; aluminum {</p>
               <p class="para_td">&nbsp; set ret &quot;vallist: .030 .040 .050 .060 .070 .080&quot;</p>
               <p class="para_td">&nbsp; }</p>
               <p class="para_td">&nbsp; default {</p>
               <p class="para_td">&nbsp; set ret &quot;vallist: .030 .040 .050 .060 .070 .080&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>