<!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>Translating a single CATIA V5 part file</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">Translating a single CATIA V5 part file</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('ugcatia5/introduction.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('ugcatia5/command_line.html');return(false);">How To</a></p>
            </td>
            <td bgcolor="#f7f7f7" colspan="1" rowspan="1">
               <p class="para_td">Options</p>
            </td>
         </tr>
      </table><br><p class="para_topic">The simplest form of the command line is to specify a single input file. For example:</p><pre class="indent">&ldquo;C:\Program Files\NX5\catiav5\catiav5.exe&quot; C:\catiav5\testfile.CATPart</pre><p class="para_topic">The input file can be a CATIA V5 file, with an extension of .CATPart or .CATProduct, if bringing data into NX, or it can be a NX file, with an extension of .prt, if moving data to CATIA V5. The command above will create a NX part file and a log file named <em>catiav5.log</em> in the current directory since no output directory filename, or log file was specified. The translator will also create a log file named, catiav5.log in the current directory, since no log file was specified.
      </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">If any of the directories specified on the command line contain spaces, you must add double quotes around the entire path and file name.</p>
               </div>
            </td>
         </tr>
      </table>
      <p class="para_topic">You can specify the name of the output file to create. For example:</p><pre class="indent">&quot;C:\Program Files\NX5\catiav5\catiav5.exe&quot; i=C:\catiav5\testfile.CATPart o=C:\parts\testfile.prt</pre><p class="para_topic">This command creates the NX part file testfile.prt in the C:\parts directory. Notice that when you specify more than one command line option, you need to use the option characters. Since this command does not specify a log file, the translator creates one called <em>catiav5.log</em> in the same directory as the output file.
      </p>
      <p class="para_topic">You can also specify a defaults file that contains an assembly search path for a CATIA V5 assembly. &nbsp;For example:</p><pre class="indent">&quot;C:\Program Files\NX5\catiav5\catiav5.exe&quot; i=C:\catiav5\testfile.CATproduct o=C:\parts\testfile.asm.prt d=C:\catiav5\catiav5.def</pre><p class="para_topic">This command will convert the CATIA V5 assembly called testfile.CATProduct and all its components. The translator will create the top-level assembly file &ldquo;testfile.asm.prt&rdquo; and all of the component parts in the directory C:\parts.</p>
      <p class="para_topic">Finally, you can specify a log file in which the translator records the details of the translation. For example:</p><pre class="indent">&quot;C:\Program Files\NX\catiav5\catiav5.exe&quot; i=C:\catiav5\testfile.CATProduct d=C:\catiav5\catiav5.def l=C:\temp\catiav5.log</pre><p class="para_topic">Because no output file name was specified, the output file is created in the current directory with a default name testfile_CATProducts.prt.</p>
   </body>
</html>