<!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>Translation behavior</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_topic1" id="xps10_pagetitle">Translation behavior</div>
      <hr noshade="true">
      <div class="title_division">Assembly load options</div>
      <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_division">You can control the translator's assembly and components behavior through an assembly load options file. The file gives you control over where to look for components, such as whether to continue processing when a referenced component referenced is missing.</p>
      <p class="para_division">The translator will use the file specified with the <b class="uiTerm">a=</b> option. In lieu of that, the file specified with the ASSEM_OPTIONS keyword in a d= specified user defined settings file is used. Or, the file specified with the ASSEM_OPTIONS keyword from the default settings file (ugto2d.def from the 2D Exchange install directory) is used.&nbsp;Or, the file specified by the environment variable UGII_LOAD_OPTIONS is used. There are no restrictions on how the files are named.
      </p>
      <p class="para_division">If no file has been explicitly provided, the translator will look for the file load_options.def in the directory the translator is running from (which is the current directory).</p>
      <p class="para_division">See <a class="links" href="javascript:void(0)" onclick="top.popUpPage('assemblies/index.html?goto=assemblies/01topic_1.html&vars=-aux,-home','linkInter','menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,location=no,directories=no');return(false);">Assembly Help</a> for further detail.
      </p>
      <div class="title_division">Real objects versus grouped geometry and text</div>
      <p class="para_division">Whenever programmatically possible, 2D Exchange creates real (same as the original) objects. If for any reason this is not possible, visually accurate grouped text and geometry creates instead. By its nature, 2D Exchange will replace 3D objects with visually correct 2D objects. This sometimes leads to cases where its not programmatically possible to render a real object.</p>
      <div class="title_division">Finding pattern files</div>
      <p class="para_division">The 2D Exchange translator will first look for pattern files in the directory specified by the environment variable, UGII_PATDIR. If UGII_PATDIR is undefined, then it will look in the directory where the translation was started. After looking in one or the other of those locations, it will look in the main part's directory.</p>
      <div class="title_division">Name display control</div>
      <p class="para_division">If the input part file has the <b class="uiTerm">Name Display</b> option on, you will see the names of all the objects in the output part file. To avoid this behavior, you may wish to turn the names off in NX using the <b class="uiTerm">Visualization</b> option on the <b class="uiTerm">Preferences</b> menu. Once the <b class="uiTerm">Visualization</b> dialog box is visible, go to the <b class="uiTerm">Names/Borders</b> tab and set the <b class="uiTerm">Object Name Display</b> to off.
      </p>
      <div class="title_division">Order of precedence</div>
      <p class="para_division">The translator provides multiple ways to express the order of precedence when information controlling a translation:</p>
      <ul>
         <li>
            <p class="para_item">Command line option value.</p>
         </li>
         <li>
            <p class="para_item">User-defined settings file value.</p>
         </li>
         <li>
            <p class="para_item">Default settings file value.</p>
         </li>
         <li>
            <p class="para_item">Program default.</p>
         </li>
      </ul>
      <p class="para_division">For example, an <b class="uiTerm">i=/lev1/a.prt</b> command line option would take precedence over user defined or default settings file INPUT_PARTS_DIR and INPUT_PARTS_LIST entries. If you have not specified a directory, the translator will look for &ldquo;a.prt&rdquo; in the INPUT_PARTS_DIR. It could have a value, or it may not &ndash; in which case the translator will look for &ldquo;a.prt&rdquo; in the current directory.
      </p>
      <div class="title_division">Settings file behavior</div>
      <p class="para_division">A user defined settings file can be specified from the command line using the <b class="uiTerm">d=</b> option. Some useful functionality can be controlled from the settings file, such as: input and output directories, input and output file lists, whether to convert just the current drawing or all drawings, the default output as' mode.
      </p>
      <p class="para_division">Unlike the command line, the internal and external NX user interfaces do not have a direct means of specifying a user defined settings file.&nbsp;One can change the default behavior of 2D Exchange by altering the default settings file, ugto2d.def that resides in the installation directory. This file reads when the translator starts, and before any user defined settings file is read.</p>
      <p class="para_division">The most likely alterations a site would want to make to the file would be to change the value of:</p>
      <p class="para_division">&nbsp;&nbsp;<code>OUTPUT_PARTS_DIR=OUTPUT_TO_CURR_DIR</code> to 
      </p>
      <p class="para_division">&nbsp;&nbsp;<code>OUTPUT_PARTS_DIR= OUTPUT_TO_INPUT_DIR</code></p>
      <p class="para_division">and</p>
      <p class="para_division">&nbsp;&nbsp;DEFAULT_DRAWING_CNV=CURRENT to </p>
      <p class="para_division">&nbsp;&nbsp;DEFAULT_DRAWING_CNV=_ALL</p>
      <div class="title_division">2D Exchange default behavior when a drawing exists</div>
      <p class="para_division">You can specify the drawing to translate by using the <b class="uiTerm">draw=</b>&lt;drawing name&gt; command line option.
      </p>
      <p class="para_division">If you do not supply a <b class="uiTerm">draw=</b> or <b class="uiTerm">view=</b> options, then the translator converts the current drawing by default.
      </p>
      <p class="para_division">If a specified or default drawing is empty, then nothing will appear in the converted part file. To avoid this potentially misleading result, you may want to ensure that the input part does not have any empty drawings. We recommend that you delete empty drawings to avoid potential confusion.</p>
      <div class="title_division">2D Exchange default behavior when a drawing does not exist</div>
      <p class="para_division">You can specify the view to translate by using the <b class="uiTerm">view=</b>&lt;view name&gt; command line option.
      </p>
      <p class="para_division">If you do not use the <b class="uiTerm">view=</b> option, the translator will convert the work view by default.
      </p>
   </body>
</html>
