<!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>Stock Offset Point (SOP) overview</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">Stock Offset Point (SOP) overview</div>
      <hr noshade="true">
      <table cellspacing="4" align="center">
         <tr valign="top">
            <td bgcolor="#f7f7f7" colspan="1" rowspan="1">
               <p class="para_td"><a class="links" href="javascript:void(0)" onclick="top.openFile('routingtools/stock_overview.html');return(false);">Stock Overview</a></p>
            </td>
            <td bgcolor="#f7f7f7" colspan="1" rowspan="1">
               <p class="para_td">Options</p>
            </td>
            <td bgcolor="#f7f7f7" colspan="1" rowspan="1">
               <p class="para_td"><a class="links" href="javascript:void(0)" onclick="top.openFile('routingtools/nested_stock.html');return(false);">Related Topics</a></p>
            </td>
         </tr>
      </table><br><p class="para_topic">A <b class="uiTerm">Stock Offset Point (SOP)</b> allows a routing path, made up of connected segments, to change according to the value of an expression string. This expression string may include a special routing variable standing in for the diameter of the largest stock that is assigned to that path. The path updates in response to changes to stock diameter or any other parameter included in the driving expression string.
      </p>
      <p class="para_topic">A stock offset point (SOP) is similar to a regular offset point except that the offset distance can also be driven by stock diameter. A stock offset point is defined by an offset vector and an offset distance (expression string), relative to an origin point. An SOP is not displayed. Use the standard <b class="uiTerm">Point and Vector Tools</b> to define the origin point and offset direction respectively. The offset distance expression may include a special variable &ndash;MAX_PATH_STOCK_DIA that takes the value of the diameter of the largest stock, including overstock, assigned to any segments passing through or ending at the SOP. For non circular stock, the diameter value used is the value of DIAMETER characteristic assigned to the stock. The value of the special MAX_PATH_STOCK_DIA variable is maintained automatically by Routing for each SOP.
      </p>
      <p class="para_topic">There is no stock from which to derive a distance for the SOP until stock is assigned to a path through it. This may result in the offset distance being equal to zero, in which case the SOP position is simply coincident with its origin point. However, you can avoid this circumstance by defining the distance expression so that it always has a non&ndash;zero value. For example, using standard expression syntax, the value of the distance expression for a particular SOP could be defined as:</p>
      <p class="para_topic">if (MAX_PATH_STOCK_DIA&gt;0) (MAX_PATH_STOCK_DIA/2) else (2).</p>
      <p class="para_topic">This results in the distance being equal to half the stock diameter when that diameter is greater than zero but equal to 2 when the stock diameter is zero.</p>
      <div class="title_division">Port SOP definition</div>
      <p class="para_division">Any port (fitting, fixture or a multi port) may have its position defined in terms of an SOP. This allows the size of the stock(s) assigned to a segment routed to or through the port to determine the position of the port. Since a path segment may be defined in terms of the port (by selecting the port during a <b class="uiTerm">Create Path</b> or <b class="uiTerm">Heal Path</b> operation), the path itself updates when the port position updates.
      </p>
      <p class="para_division">This diagram shows how the definition of an SOP is used in a simple clip (a typical example in which the clip is taped onto a wire bundle) by defining the position of the clip's fixture port in terms of an SOP.</p>
      <p align="center"><img align="bottom" src="graphics/stockoff1.gif"></p>
      <p class="para_division">You must place the component into the routing assembly by a <b class="uiTerm">Place Part</b> operation. <b class="uiTerm">Place Part</b> performs the necessary functions to maintain the relationship between the Port position and its SOP according to the <b class="uiTerm">Distance Expression</b> of the SOP. You can select the displayed port to create path segments (either through <b class="uiTerm">Simple</b> or <b class="uiTerm">Heal Path</b> methods). When stock is assigned to that path, the port changes position accordingly (provided MAX_PATH_STOCK_DIA is included in the <b class="uiTerm">Distance Expression</b> of the SOP) and the path changes to follow the port to the new position.
      </p>
   </body>
</html>