<!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_askFeatureNormal()</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_askFeatureNormal()</div>
      <hr noshade="true">
      <p class="para_topic">This function returns the vector of a face feature relative to the absolute coordinate system. The features must have a single planar face, otherwise a zero vector will be returned. Use this to align the tool axis of an operation to the face normal of face features.</p>
      <div class="title_division">Examples of How to Use ug_oper_askFeatureNormal()</div>
      <p class="para_division">$hole_axis &lt;&lt; if ug_vectorToString(ug_oper_askFeatureNormal()) != &quot;Vector(0,0,0)&quot; then ug_oper_askFeatureNormal() else ug_oper_askMcsZ();</p>
      <p class="para_division">Checks for a valid face features face normal and assigns the result to $hole_axis. If a zero vector is returned (Vector(0,0,0)) then use the Z of MCS instead.</p>
   </body>
</html>