<!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>Setting Up the Tool Query for Milling Features</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">Setting Up the Tool Query for Milling Features</div>
      <hr noshade="true">
      <table cellspacing="3" align="center">
         <tr valign="top">
            <td bgcolor="#f4f4f4" colspan="1" rowspan="1">
               <p class="para_td"> <a class="links" href="javascript:void(0)" onclick="top.openFile('mfgholemaking/fbm_feat_based_mill.html');return(false);">Overview</a></p>
            </td>
            <td bgcolor="#f4f4f4" colspan="1" rowspan="1">
               <p class="para_td"> <a class="links" href="javascript:void(0)" onclick="top.openFile('mfgholemaking/fbmil_proc.html');return(false);">How To</a></p>
            </td>
            <td bgcolor="#f4f4f4" colspan="1" rowspan="1">
               <p class="para_td"> <a class="links" href="javascript:void(0)" onclick="top.openFile('mfgholemaking/fbmill_options.html');return(false);">Options</a></p>
            </td>
         </tr>
      </table><br><p class="para_topic">At this point you have created three operations: rough_ug_open_pocket, wall_ug_open_pocket, and floor_ug_open_pocket. Now you need to choose the tool for each operation.</p>
      <p class="para_topic">Change the Operation Navigator back to the Method View and follow the steps below:</p>
      <p class="para_topic"> <a class="links" href="javascript:void(0)" onclick="top.openFile('mfgholemaking/fbmil_proc_edit_group.html');return(false);">Edit the ROUGH_OPEN_POCKET_METHOD Group</a></p>
      <p class="para_topic"> <a class="links" href="javascript:void(0)" onclick="top.openFile('mfgholemaking/fbmil_proc_finish_grp.html');return(false);">Edit the FINISH_OPEN_POCKET_METHOD Group</a></p>
      <p class="para_topic">These examples show a possible rule for selecting the tools. You can use the same tool for all operations. The radius of the tool needs to be equal to the minimum corner radius of the pocket. If the pocket has no corner radius, then the min/max box decides the diameter of the tool. The query should also search for tools whose flute length is long enough to cover the whole feature height.</p>
      <p class="para_topic">There are several KF functions available to retrieve information from the feature such as the height, width, length, and corner radius. If the feature is an NX feature you can use the ug_oper_askFeatureAttributeValue() function to access the feature parameters. However, these parameters are not necessarily equivalent to the real dimensions once the feature is instantiated. Therefore, it's better to use other functions that retrieve the real dimensions of the modeled feature. These functions are described in the  <a class="links" href="javascript:void(0)" onclick="top.openFile('mfgholemaking/kf_rules_func.html');return(false);">Knowledge Fusion</a> section. 
      </p>
      <p class="para_topic">For the tool query in this case, we use two functions: ug_oper_askPocketCornerRadius() and ug_oper_askFaceMaxMin() if the pocket has no corner radius. To make if-then-else decisions for the tool query it's better to write a new function in the dfa file.</p>
      <p class="para_topic">This function (ug_cam_tool_cr_dia_pocket() )asks for a possible corner radius and if it doesn't find it, it checks the minimum and maximum dimensions of the pocket and returns an appropriate value for the tool diameter. </p>
   </body>
</html>