<!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_setCycle()</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_setCycle()</div>
      <hr noshade="true">
      <p class="para_topic">This function sets the cycle of a hole making operation. The cycle name must match with either one of the system cycle names or a user defined cycle in the ude.cdl file.</p>
      <p class="para_topic">Input</p>
      <ul class="unmarkedList">
         <li>
            <p class="para_item">Any - Hostpointer of the operation </p>
         </li>
         <li>
            <p class="para_item">String &ndash; Cycle name </p>
         </li>
      </ul>
      <div class="title_division">Example of how to use </div>
      <p class="para_division">$oper_hostpointer &lt;&lt; ug_oper_create( &quot;hole_making&quot;,&quot;HOLE_MAKING&quot;,$oper_name,&quot;NONE&quot;,&quot;REAM_METHOD&quot; ); </p>
      <p class="para_division"> ug_oper_setCycle($oper_hostpointer, &quot;Drill_Ream&quot;); </p>
      <p class="para_division">See also ug_cam_set_oper_params in ug_cam_samples.dfa</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"> The function should only be used either from ug_oper_postCreate() or ug_fbm_postCreate() after an operation was created through KF by ug_operCreate(). </p>
                  <p class="para_note_body">Use the ug_cam_askObjectOfInstance(self()) function to obtain the hostpointer from ug_oper_postCreate()</p>
               </div>
            </td>
         </tr>
      </table>
   </body>
</html>