<!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>Methods of invoking 2D Exchange</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_topic2" id="xps10_pagetitle">Methods of invoking 2D Exchange</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('dexchange/2d_exchange.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('dexchange/file_exp_inter.html');return(false);">How To</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('dexchange/obj_map.html');return(false);">Related Topics</a></p>
            </td>
         </tr>
      </table><br><p class="para_topic">You can invoke the 2D Exchange translator from NX under <b class="uiTerm">File&rarr;Export&rarr;2D Exchange</b>.
      </p>
      <p class="para_topic">You can also run the translator in <b class="uiTerm">Prompt Mode</b> by invoking 2D Exchange in one of three ways:
      </p>
      <ol type="1" start="1">
         <li>
            <p class="para_item">from the NX activity menu on UNIX,</p>
         </li>
         <li>
            <p class="para_item">from the <b class="uiTerm">2D Exchange</b> button on Windows,
            </p>
         </li>
         <li>
            <p class="para_item">from the command line when no input part is supplied.</p>
         </li>
      </ol>
      <p class="para_topic">If you provide an input part on the command line, the translator will run without prompting for any further input.</p>
      <p class="para_topic">See  <a class="links" href="javascript:void(0)" onclick="top.openFile('dexchange/example_prompt.html');return(false);">Example of prompt&ndash;mode invocation of translator</a> for further information
      </p>
      <p class="para_topic">You can get to the command line with the following steps:</p>
      <table bgcolor="#F0F0F0" cellpadding="2" cellspacing="4" width="95%" align="center">
         <colgroup span="1">
            <col span="1" width="63*">
            <col span="1" width="136*">
         </colgroup>
         <tr valign="top">
            <td bgcolor="#f7f7f7" colspan="1" rowspan="1" valign="top">
               <p class="para_td">UNIX</p>
            </td>
            <td bgcolor="#f7f7f7" colspan="1" rowspan="1" valign="top">
               <p class="para_td">Exit from NX activity menu (<b class="commandName">ugmenu</b>) into a subshell by choosing <b class="commandName">UGADMIN</b>, followed by UNIX SHELL.
               </p>
            </td>
         </tr>
         <tr valign="top">
            <td bgcolor="#f7f7f7" colspan="1" rowspan="1" valign="top">
               <p class="para_td">Windows </p>
            </td>
            <td bgcolor="#f7f7f7" colspan="1" rowspan="1" valign="top">
               <p class="para_td">Select the NX <b class="uiTerm">Command Prompt</b> button under the NX <b class="uiTerm">Program Tools</b>.
               </p>
            </td>
         </tr>
      </table><br><p class="para_topic">From the command line, you can invoke 2D Exchange with one of the following commands:</p>
      <table bgcolor="#F0F0F0" cellpadding="2" cellspacing="4" width="95%" align="center">
         <colgroup span="1">
            <col span="1" width="50*">
            <col span="1" width="149*">
         </colgroup>
         <tr valign="top">
            <td bgcolor="#f7f7f7" colspan="1" rowspan="1" valign="top">
               <p class="para_td">UNIX</p>
            </td>
            <td bgcolor="#f7f7f7" colspan="1" rowspan="1" valign="top">
               <p class="para_td"><code>$UGII_BASE_DIR/ugto2d/ugto2d</code></p>
            </td>
         </tr>
         <tr valign="top">
            <td bgcolor="#f7f7f7" colspan="1" rowspan="1" valign="top">
               <p class="para_td">Windows </p>
            </td>
            <td bgcolor="#f7f7f7" colspan="1" rowspan="1" valign="top">
               <p class="para_td"><code>%UGII_BASE_DIR%\UGTO2D\ugto2d</code></p>
            </td>
         </tr>
      </table><br><p class="para_topic">Alternatively, the directory containing the 2D Exchange executable can be added to your PATH so that the command ugto2d can be issues, rather than <code>$UGII_BASE_DIR/ugto2d/ugto2d</code>.
      </p>
      <table bgcolor="#F0F0F0" cellpadding="2" cellspacing="4" width="95%" align="center">
         <colgroup span="1">
            <col span="1" width="51*">
            <col span="1" width="148*">
         </colgroup>
         <tr valign="top">
            <td bgcolor="#f7f7f7" colspan="1" rowspan="1" valign="top">
               <p class="para_td">UNIX (ksh)</p>
            </td>
            <td bgcolor="#f7f7f7" colspan="1" rowspan="1" valign="top">
               <p class="para_td"><code>PATH=$PATH:$UGII_BASE_DIR/ugto2d/export PATH</code></p>
            </td>
         </tr>
         <tr valign="top">
            <td bgcolor="#f7f7f7" colspan="1" rowspan="1" valign="top">
               <p class="para_td">Windows</p>
            </td>
            <td bgcolor="#f7f7f7" colspan="1" rowspan="1" valign="top">
               <p class="para_td">set <code>PATH=%PATH%;%UGII_BASE_DIR%\ugto2d</code></p>
            </td>
         </tr>
      </table><br></body>
</html>