<!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>ug_oper_hasFeatureAttribute()</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">ug_oper_hasFeatureAttribute()</div>
      <hr noshade="true">
      <p class="para_topic">This function asks whether or not the feature has an attribute or parameter with this name. If it does it returns TRUE. If it does not, it returns FALSE. This can be used prior to ug_oper_askFeatureValue to make sure this attribute exists.</p>
      <div class="title_division">Examples of How to Use ug_oper_hasFeatureAttribute()</div><pre class="indent">if ug_oper_hasFeatureAttribute(&quot;Tolerance&quot;) = TRUE then
&nbsp;&nbsp;ug_oper_askFeatureValue(&quot;Tolerance&quot;) else 0</pre><p class="para_division">This example asks for the feature's tolerance value only, if it has one.</p><pre class="indent">&nbsp;
if ug_oper_hasFeatureAttribute(&quot;Diameter&quot;) = TRUE then
&nbsp;&nbsp;&nbsp;ug_oper_askFeatureValue(&quot;Diameter&quot;) 
else if ug_oper_hasFeatureAttribute(&quot;Hole Diameter&quot;) = TRUE then
&nbsp;&nbsp;&nbsp;ug_oper_askFeatureValue(&quot;Hole Diameter&quot;) else 0</pre><p class="para_division">This example asks for the feature's tolerance value only if this attribute or parameter exists.</p>
   </body>
</html>