<!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>Example APV plug-in definition</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">Example APV plug-in definition</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('routingadmin/view_overview.html');return(false);">Overview</a></p>
            </td>
            <td bgcolor="#f7f7f7" colspan="1" rowspan="1">
               <p class="para_td"><a class="links" href="javascript:void(0)" onclick="top.openFile('routingadmin/view_example.html');return(false);">How To</a></p>
            </td>
            <td bgcolor="#f7f7f7" colspan="1" rowspan="1">
               <p class="para_td"> <a class="links" href="javascript:void(0)" onclick="top.openFile('routingadmin/view_descrip.html');return(false);">Options</a></p>
            </td>
            <td bgcolor="#f7f7f7" colspan="1" rowspan="1">
               <p class="para_td"><a class="links" href="javascript:void(0)" onclick="top.openFile('routingadmin/xml_key.html');return(false);">Related Topics</a></p>
            </td>
         </tr>
      </table><br><p class="para_topic">You must define each of the plug-in programs in the APV file for execution to occur. Each plug-in has a default executable defined in the example APV files provided with the system. The following is one entry of the APV file defining a plug-in, using the ROUTE_CHOOSE_PART callback for example.</p><pre class="indent">&lt;Plugin&gt;
&lt;Name&gt;
ROUTE_CHOOSE_PART
&lt;/Name&gt;
&lt;External_Dll&gt;
&lt;DLL_Name&gt;
ufd_route_choose_part
&lt;/DLL_NAME&gt;
&lt;Entry_Point&gt;
UFD_ROUTE_choose_part
&lt;/Entry_Point&gt;
&lt;/External_Dll&gt;
&lt;/Plugin&gt;</pre><p class="para_topic">In the example above, the name ROUTE_CHOOISE_PART is the plug&ndash;in keyword. This name must be one of the names listed in the table above. The DLL_name entry, shown above as ufd_route_choose_part, is the name of the shared library containing your function. This name may be anything of your choosing [provided there does exist a shared library by that name]. The Entry_Point entry is the name of the main function within the shared library.</p>
   </body>
</html>