Command Line Parameters


Plot2EMF now supports the following command line options:

Plot2EMF [options] [filename(s)]
where options are
/H Display the Plot2EMF Help Contents
/? same as /H
/B Sets "Batch" mode and converts each file specified into an .EMF file. Batch mode implies that the automatic clipboard copy is disabled, no warnings are generated, and no success messages are displayed.
/O Causes the .EMF files to be placed in the same folder as the.PLT files (overrides the "Preferences" setting)
/O:"folder" Causes the .EMF files to be placed in specified folder (overrides the 'Preferences' setting)
/RO=nn where nn is , 90, 180, or 270. Rotates the plot by nn degrees. Any RO; commands in the HP-GL file will be rotated twice.
/MX Causes the X-axis to be mirrored, in other words (0,0) is at the lower-right corner. This option is now also available via the Open HP-GL Special... command.
/MY Causes the Y-axis to be mirrored, in other words (0,0) is at the upper-left corner. This option is now also available via the Open HP-GL Special... command.
/NTGL Selects the settings used to convert images created with the Windows NT HP-GL/2 Printer Driver. This is the same as /RO=90 /MX
/An Sets the "paper" size to DIN An, where n may be 0, 1, 2, 3 or 4.
/I:PC Instructs Plot2EMF to ignore the PC (Pen Color) commands (if any) found in the source file.
/S:nnn Scales the drawing. nnn can be any real number between 0.1 (very small) and about 1000.0 (very large).
/BMP:n
(registered version only) Automatically generates a Windows.BMP file of n pixels wide. The height of the bitmap will be calculated so that the image is properly scaled.
/X
(registered version only) When used together with the /BMP option, /X prevents Plot2EMF from writing the EMF file to disk. Use the option when all you want is the.BMP file.
/P
(registered version only) Automatically sends the converted plot file to the printer. When Plot2EMF is started with this option, it will prompt you to select and configure the printer.
/PD
(registered version only) The /PD command is the same as the /P command, except that Plot2EMF automatically uses the default Windows printer, rather then prompting the user to select the printer.
/PM
(registered version only) Instructs Plot2EMF to open and print MetaFiles (see also Open EMF... command) instead of HP-GL plot files. This command should be combined with the /B (Batch) or /BX (Batch Exit) commands.
/Q Sets 'quiet' mode - the status pop-up window is not displayed during conversions.
/E Instructs Plot2EMF to emulate the conversion (no .LOG or .EMF file will be produced).
/Z Instructs Plot2EMF to "Zap" (delete) the .LOG file when a plot file was successfully converted (no warnings were generated).
/DDE Used internally by the DDE interface that the P2E4PV.DLL uses.
/K Instructs Plot2EMF to exit (used internally by the DDE interface).
/C Used by PolyView to generate a color information file.
/F Used by PolyView to change a number of default settings. This option sets the following options:
  • Don't display success messages
  • No 'not implemented' warnings
  • Don't optimize arcs and circles
  • Device Initialization (IN;) implied
  • Convert text from ASCII to ANSI
  • Use built-in vector font
/2 Used internally by the DDE interface.
filename(s) Directory and filename of the file to be converted. If /B (Batch mode) has been specified, then the filename may contain wildcards, e.g., *.PLT.

CALLP2E

CALLP2E - Command Line Utility to call Plot2EMF

Usage: CALLP2E [options] <plotfile> [<plotfile>...]

where [options] are:

/O Causes the.EMF files to be placed in the same folder as the .PLT files (overrides the Plot2EMF 'Preferences' setting)
/O:"folder" Causes the.EMF files to be placed in specified folder
/RO=nn (nn=0, 90, 180, or 270). Rotates the plot by nn degrees.
/MX Mirrors the X-axis, so that 0 is at the right side of the page.
/MY Mirrors the Y-axis so that 0 is at the top of the page.
/NTGL Used to convert images created with the Windows HP-GL/2 Printer Driver. (same as /RO=90 /MX)
/An Sets the 'paper' size to DIN An, where n is 0, 1, 2, 3 or 4.
/BMP:n Automatically generates a .BMP (bitmap file) of n pixels wide. The height of the bitmap will be set by the image dimensions.
/P Automatically sends the converted plot file to the printer.
/PD Automatically sends the converted plot to the default printer.
/PM Open and print MetaFiles instead of HP-GL plot files.
/Q Quiet mode: The Plot2EMF progress window is not displayed.
/Z 'Zap' (delete) the.LOG file when a plot file was converted successfully (no warnings were generated).

and <plotfiles> are any HP-GL/2 plot file (with the extension .PLT, .HPG or .HGL). You can also use wildcards (e.g. *.PLT) to convert multiple files.

See Also:


Copyright © 1999-2006, 2010 by James Greene. All rights reserved. Information subject to change without notice.