Command Line Usage
Convert a single file
di.exe /InFile source-file-name /OutFile
destination-image-file-name [/Hide]
Parameters:
/InFile Input file name, e.g. D:\DWGs\Building.dwg
/OutFile Output file name,
e.g. D:\Images\Building.jpg
/Hide
Hide the result window
Example: Convert sample.dwg to sample.tif
di.exe /InFile D:\sample.dwg /OutFile D:\sample.tif
|
Convert a folder
di.exe /InFolder source-folder /OutFolder
destination-folder [/InFormat input-format] [/OutFormat output-format]
[/IncSubFolder] [/Hide]
Parameters:
/InFolder Input folder name, e.g. D:\DWGs
/OutFolder Output folder
name, e.g. D:\Images
/InFormat Input format, available
values:
DWG Convert all DWG files
DXF Convert all DXF files
DWF Convert all DWF files
ALL
Convert all DWG, DXF and DWF files, default is ALL
/OutFormat Output format, available values: JPG, TIF, BMP, GIF, PNG, TGA, PCX, WMF, EMF.
Default is BMP
/IncSubFolder Include subdirectories
/Hide
Hide the result window
Example 1: Convert all dwg files to jpg files
di.exe /InFolder D:\Drawings /OutFolder D:\Images /InFormat DWG /OutFormat
JPG /IncSubFolder
Example 2: Convert all dwg/dxf/dwf files to tif files
di.exe /InFolder D:\Drawings /OutFolder E:\Images /InFormat
ALL /OutFormat
TIF /IncSubFolder
|
Optional Parameters
Note: the following parameters are not required. If the parameter is not specified, then it will default to the GUI setting.
/Hide |
Hide the result window and the message dialog |
/ImgWidth |
Image width in pixels, e.g. 1024 |
/ImgHeight |
Image height in pixels, e.g. 768 |
/DisableAutoSize |
Disable the "Automatically adjust the image size
based on the drawing" option |
/DPI |
Image resolution, e.g. 96
This parameter only has an effect when the "Automatically adjust the image
size based on the drawing" option have been enabled. |
/ImgMargin |
Margin in pixels, e.g. 10 |
/ImgColor |
Output color, available values: TrueColors,
GrayScale, BlackWhite.
TrueColors: True Colors
GrayScale: Gray-scale
BlackWhite: Black/White
For example: /ImgColor TrueColors |
/BgColor |
Image background color. For example: /BgColor
255,255,255 |
/TIFCompression |
TIFF Compression, available values: NON, FX3,
FX4, RLE, LZW, DEF, BIT.
NON: None
FX3: CCITT Group 3 (fax3)
FX4: CCITT Group 4 (fax4)
RLE: modified huffman RLE
LZW: LZW
DEF: Deflate
BIT: PackBits
For example: /TIFCompression DEF |
/Overwrite |
Overwrite existing image file |
/OutLayout |
Output layout, available values: All, Model,
Paper, Active, ByName:layoutname.
All:
All layouts
Model:
Model space
Paper:
All paper spaces
Active:
Last active layout
ByName: Ouput by layout name
For example:
/OutLayout Paper
/OutLayout ByName:Layout1
|
/OutArea |
Output area, available values: ZoomExtents,
LastSavedView.
ZoomExtents: Zoom
extents
LastSavedView: Last saved view of
drawing
For example: /OutArea ZoomExtents |
/LineWidth |
Line width, available values: CADDefault, Default, ByColor.
CADDefault: Use the CAD default line
weight
Default:
Default width
ByColor: Customer
by color
For example: /LineWidth CADDefault |
/DisableFillTTF |
Disable the "Fill TTF font in the drawing"
option |
/Recover |
If the program freezes on certain files, please use this parameter. It will recover the drawing if the drawing is damaged. To improve the performance, please don't use this parameter. |
/Options |
Open the Options dialog |
|
Get Help
Upgrade to the Pro version from the standard version
di.exe /reg your-registration-code
|
|