<!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>Command-Line Interface</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">Command-Line Interface</div>
      <hr noshade="true">
      <p class="para_topic">Use command-line program nxplot to access the functionality of the NX Print dialog without starting NX. You can:   </p>
      <ul>
         <li>
            <p class="para_item">Invoke nxplot to display the NX Print dialog so you can interactively specify options for printing or exporting arbitrary CGM and TIFF files.  </p>
         </li>
         <li>
            <p class="para_item">Invoke nxplot to perform noninteractive or batch printing tasks. </p>
         </li>
         <li>
            <p class="para_item">Automate common plotting tasks by implementing scripts or programs that invoke nxplot.</p>
         </li>
      </ul>
      <div class="title_division">On Windows systems</div>
      <p class="para_division">%UGII_BASE_DIR%\nxplot\nxplot [ parameters ]</p>
      <div class="title_division">On UNIX systems</div>
      <p class="para_division">$UGII_BASE_DIR/nxplot/nxplot [ parameters ]</p>
      <div class="title_division">Automating Common Plotting Tasks</div>
      <table align="center">
         <tr>
            <td colspan="1" rowspan="1">
               <p class="para_td">Listing available printers and profiles for a printer group</p>
            </td>
            <td colspan="1" rowspan="1">
               <p class="para_td">nxplot -list [-group_dir=directory] [-jobs_dir=directory] [-home_dir=directory]</p>
            </td>
         </tr>
         <tr>
            <td colspan="1" rowspan="1">
               <p class="para_td">Printing a CGM or TIFF file</p>
            </td>
            <td colspan="1" rowspan="1">
               <p class="para_td">nxplot -input=cgm_or_tiff_file [-group_dir=directory] [-jobs_dir=directory] [-home_dir=directory] [-printer=printer_name] [-profile=profile_name] [-copies=nn] [-output=outfile]</p>
            </td>
         </tr>
         <tr>
            <td colspan="1" rowspan="1">
               <p class="para_td">Exporting a CGM or TIFF file to another format</p>
            </td>
            <td colspan="1" rowspan="1">
               <p class="para_td">nxplot -input=cgm_or_tiff_file -format=format_string -output=outfile [-group_dir=directory] [-jobs_dir=directory] [-home_dir=directory] [-profile=profile_name]</p>
            </td>
         </tr>
         <tr>
            <td colspan="1" rowspan="1">
               <p class="para_td">Launching the NX Print dialog</p>
            </td>
            <td colspan="1" rowspan="1">
               <p class="para_td">Omit both the list and input parameters.</p>
               <p class="para_td">nxplot [-group_dir=directory] [-jobs_dir=directory] [-home_dir=directory]</p>
            </td>
         </tr>
      </table><br><div class="title_division">Optional Parameters</div>
      <p class="para_division">The nxplot program uses default values for any optional parameters that are not specified. The parameters have the following meanings.</p>
      <table align="center">
         <tr>
            <th colspan="1" rowspan="1">
               <p class="para_th">List    </p>
            </th>
            <td colspan="1" rowspan="1">
               <p class="para_td">Displays a list of available printers and profiles for the printer group.</p>
            </td>
         </tr>
         <tr>
            <th colspan="1" rowspan="1">
               <p class="para_th">input=cgm_or_tiff_file</p>
            </th>
            <td colspan="1" rowspan="1">
               <p class="para_td">Specifies the path of the CGM or TIFF file to be printed or, if the -format parameter is specified, exported to another format.</p>
            </td>
         </tr>
         <tr>
            <th colspan="1" rowspan="1">
               <p class="para_th">format=format_string</p>
            </th>
            <td colspan="1" rowspan="1">
               <p class="para_td">Specifies the format to which the CGM or TIFF file is to be exported. Format_string can be set to one of the following values.</p>
               <p class="para_td">TIFF</p>
               <p class="para_td">JPEG</p>
               <p class="para_td">EMF</p>
               <p class="para_td">CGM</p>
               <p class="para_td">PNG</p>
            </td>
         </tr>
         <tr>
            <th colspan="1" rowspan="1">
               <p class="para_th">group_dir=directory   </p>
            </th>
            <td colspan="1" rowspan="1">
               <p class="para_td">Specifies the printer group directory to use. You need not set the -group_dir parameter if environment variable UGII_SDI_SERVER_CFG_DIR is set to identify the printer group directory.</p>
            </td>
         </tr>
         <tr>
            <th colspan="1" rowspan="1">
               <p class="para_th">jobs_dir=directory</p>
            </th>
            <td colspan="1" rowspan="1">
               <p class="para_td">Specifies the jobs directory associated with the printer group.</p>
            </td>
         </tr>
         <tr>
            <th colspan="1" rowspan="1">
               <p class="para_th"> home_dir=directory </p>
            </th>
            <td colspan="1" rowspan="1">
               <p class="para_td">Specifies the home directory associated with the printer group.</p>
            </td>
         </tr>
         <tr>
            <th colspan="1" rowspan="1">
               <p class="para_th">printer=printer_name</p>
            </th>
            <td colspan="1" rowspan="1">
               <p class="para_td">Identifies the printer to use if the file is to be printed.</p>
            </td>
         </tr>
         <tr>
            <th colspan="1" rowspan="1">
               <p class="para_th">profile=profile_name</p>
            </th>
            <td colspan="1" rowspan="1">
               <p class="para_td">Identifies a profile that specifies printer or export options.</p>
            </td>
         </tr>
         <tr>
            <th colspan="1" rowspan="1">
               <p class="para_th">copies=nn</p>
            </th>
            <td colspan="1" rowspan="1">
               <p class="para_td">Specifies the number of copies to print. </p>
            </td>
         </tr>
         <tr>
            <th colspan="1" rowspan="1">
               <p class="para_th">output=outfile</p>
            </th>
            <td colspan="1" rowspan="1">
               <p class="para_td">Specifies a path for the printer or export output file produced by nxplot.</p>
            </td>
         </tr>
      </table><br></body>
</html>