<!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_askProgramParent()</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_askProgramParent()</div>
      <hr noshade="true">
      <p class="para_topic">The system accesses this function whenever you create an adopted operation from a template. Within the function you can decide under which Program Folder the operation will go. The return value is a string that carries the name of the desired program group. A folder with this name must be present in the part otherwise the system leaves the operation in the program group that it was originally in.</p>
      <p class="para_topic">This allows a better &quot;folder by folder&quot; optimization and helps to organize operations in the Program View.</p>
      <p class="para_topic">Example: </p><pre class="indent">Defun: ug_oper_askProgramParent(Instance $instance)
@{
&nbsp;&nbsp;&nbsp;$fix_offset &lt;&lt; &quot;G&quot;+format(&quot;%d&quot;,ug_param_askValue(&quot;Fixture offset value&quot;)); 
} String;</pre><p class="para_topic">The above example asks for the operations parent MCS Fixture offset name (54, 55, etc.) and returns a string which is either G54, G55, etc. If program folders with these names exist in the setup the system sorts the active operation accordingly.</p>
      <table border="0">
         <tr>
            <td valign="top" align="left"><img align="left" src="../graphics/note.gif" alt="Note" title="Note"></td>
            <td valign="bottom" align="left" width="100%">
               <div class="para_note">
                  <p class="para_note_body">Candidates for folder organization would be, for example, operations sorted by their hole axis orientation (I,J,K) to allow a side by side optimization on tombstone situations.</p>
               </div>
            </td>
         </tr>
      </table>
   </body>
</html>