|
Acme DWG Converter supports to run on command line mode.
Command line format
AcmeDWGConverter
[/r] [/e] [/m] [/info] [/l filaname] [/ls] [/info] [/p integer] [/w
integer] [/h integer] [/b integer] [/j integer] [/f integer] [filename]
[filename] ...
Acme DWG Converter command line meaning:
- /r
It will run on command line mode, mmediately convert, and exit after
the conversion is completed. If there was not such a parameter, Acme
CadConverter can open this file in a simple way.
- /e Auto zoom extend.
- /ls Uses layout paper size if possible.
- /m Includes mask raster file
- /wm Enables to output the preset watermark.
- /l
filename Generate conversion report in the filename of a file, if there
was no such a parameter, then report file can not be generated.
Note: This parameter must be specified after /r parameter, otherwise it will be invalid.
- /p integer Indicate the raster pixel format, [1 -- 1_bit format, 2 -- gray format, 3 -- 256 colors], default is 3--256 colors
- /w integer Raster width, default is 800.it
also supports the unit flag, such as (420mm = 420 mm, 11in = 11 inch),
if you do not specify the unit flag, the unit will be pixels default.
- /h integer Indicate the raster height, default is 600, the unit flag is the same as the '/w' parameter.
- /res integer the output quality, it is represented with DPI, it means how many pixels per inch.
- /ad Auto detects and fits the current page size for the converted drawing.
- /b integer Indicate background color index, [0-black, 1-red, 2-yellow, 3-green, 4-aqua, 5-blue, 6-Magenta, 7-White, 8-Dark Gray], the other colors please refer to the set color dialog. Default is 7-white
- /j integer Indicate the jpeg quality, 1-lower, 10-highest, default is 10
- /i
When you set this parameter and when you open the file and unable to
find the “shx file”, it will no longer prompt the user, instead the
name of such file will be written to a report file (if a report file
needs to be so generated).
- /f integer Raster file format,
1 -- bitmap format(*.bmp),
2 -- Jpeg format(*.jpg),
3 -- GIF format(*.gif),
4-- PCX format(*.pcx) ,
5-- TIFF fromat(*.tiff),
6--PNG format(*.png),
7--TGA format(*.tga),
8- WMF format(*.wmf),
101 -- SVG format , (*.svg)
102 -- HPGL *.PLT format , (*.plt)
103 -- HPGL *.HGL format , (*.hgl)
104 -- PDF format(*.pdf),
105 -- Converts more drawing files into one PDF file(*.pdf), 109 -- PDF (per PDF file for per layout) (*.pdf)
106 -- SVGZ (Compressed scalable vector graphics), (*.svgz)
107 -- CGM (Computer graphics metafile), (*.cgm)
108 -- EPS(Encapsulated PostScript), (*.eps)
default is 1-- Bitmap format.
- /d The output folder or PDF filename :
when using '/f105' , it should look like '/d
pdf_file_name', the PDF filename when convert more drawing files into
one PDF file, else the option will specify a folder that the
program will save all output into, Such as: /d "c:\output\1\" - /_
File name separative sign, For exsample: a DWG file "test.dwg", when
exporting the "layout1" layout of the drawing into PDF format, if
you using this option, the output should be "test_layout1.pdf", the
default is '/-'.
- /- Uses '-' letter
as file name separative sign, if you using this option, in the exsample
above the output should become "test-layout1.pdf".
- /a Layout Index is a interger number, the follows is the meanings:
0 : Always converts model space .
1 : Converts the 1st layout.
2 : Converts the 2nd layout, and so on.
-1 :Converts the current layout.
-2 :Converts all layouts.
-3 :Converts
all paper space layouts
- /pw Use pen-set, you must follow a pen-set name after '/pw' when use this option, such as: /pw myset
About pen-set, you can create it with pen sets dialog box in this program.
- /lw Enable the line weight option.
- /lw 1 to enable the line weight option.
- /lw 0 to disable it (default)
- /info Export entity informations, such as type,layer,color,linetype... ,(only use to export to svg file);
- /scale
Export by scale, the parameter need to be follwed a value(double)
to tell the program scale the drawing, at present, it is available when
export to pdf.
- /margin margin of the output page, the unit is always set to inch, this option is only valid when you use '/scale' option.
- /key
Registration code. Sometimes DWG Converter can't read the registration
code from register table at command line mode, so you can specify the
registration code with this parameter.
Note
1. Files in front of /r parameter can be opened simply, only those after /r parameter can be converted instantly.
2. No need to assign a name to raster file, because Acme Cad Converter
will generate the name automatically according to the format of the
raster file (to be specified by /f parameter), such as a.dwg -> a.bmp, or a.dwg -> a.gif.
3. Raster file and DWG file are in the same directory.
4. Parameter /l for generating report file must be specified immediately after the conversion of parameter /r, otherwise it will be invalid.
5. Format and meaning of the report file
6. When you convert more drawing files into one PDF file, you can't set the width or height to 0, and 1 unit of widht or height is 1/72 inch, but DWG Converter will increase 30 units because the page margin is 15 units.
Report
a. Each line uses an integer to indicate one conversion report;
b. Meaning of the integer:
- 0 --> Conversion successful
- 1 --> Memory insufficient
- 2 --> Drawing failed
- 3 --> File open failed
- 4 --> Invalid file
Unit
In the HPGL file: 1 unit = 1/42 mm
In the PDF file: 1 unit = 1/72 inch
Example:
AcmeDWGConverter /r /e /ls /p 1 /f 104 /w 1200 /h 800 /a -2 /pw "penset" "d:\test.dwg"
Converts d:\test.dwg with the below parameters,
- Auto zoom extend.
- Use layout paper size if possible.
- output 1_bit format.
- output to PDF format.
- output width is 1200 unit.
- output height is 800.
- convert the all layouts.
- Use pen width set, the set name is penset that maybe created by you.
New
AcmeDWGConverter /r /ad /ls /p 1 /f 104 /w 17in /h 11in /res 400 /a -2 /pw "penset" "d:\test.dwg"
Converts d:\test.dwg with the below parameters,
- Auto detects and fits the current page size for the converted drawing, it also does the 'Zoom extend' action.
- Use layout paper size if possible.
- output 1_bit format.
- output to PDF format.
- output width is 17 inch(if possible).
- output height is 11inch(if possible).
- convert the all layouts.
- Use pen width set, the set name is penset that maybe created by you.
- Set the quality of the output to 400DPI.
AcmeDWGConverter /r /e /scale 100.0 /margin 0.05 /p 1 /f 104 /a -2 /pw "penset" "c:\test\1.dwg" "c:\test\2.dwg"
- Auto zoom extend.
- output 1_bit format.
- output to PDF format.
- Export by scale.
- Set the margin to 0.05 inch.
- convert the all layouts.
- Use pen width set, the set name is penset that maybe created by you.
AcmeDWGConverter /r /e /scale 100.0 /margin 0.05 /p 1 /f 105 /a -2 /pw "penset" /d "c:\out\all.pdf" "c:\test\1.dwg" "c:\test\2.dwg"
- Auto zoom extend.
- Output 1_bit format.
- Output to PDF format.
- Export by scale.
- Set the margin to 0.05 inch.
- Converts multi- drawing files into one PDF file.
- Converts the all layouts.
- Use pen width set, the set name is penset that maybe created by you.
Meaning of command line parameters during version conversion
AcmeDWGConverter [/g[version]] [/x[version]] srcfile destfile
/g Indicates conversion to DWG file
/x Indicates conversion to DXF file
Numerical value and meaning of version (specially for AutoCAD):
- 25 -> Version 2.5
- 26 -> Version 2.6
- 9 -> Version 9
- 10 -> Version 10
- 11 -> Version 11
- 12 -> Version 12
- 13 -> Version 13
- 14 -> Version 14
- 2000 -> Version 2000
- 2004 -> Version 2004
If there is no version parameter, the default one should be Version 2000.
Explanation
After the conversion is done, close this program immediately. /g or /x
parameter must be placed in front of the filename, and the sequence of
source file and object file can’t be reversed. Only one file can be
converted at a time, but the same parameter can be used repeatedly to
convert multiple files, please refer to the following example for
details. Conversion of this version also supports log function, and the
application method is identical with the above. Note: -/r parameter
must also be added in front of /l parameter, and this /r parameter will
not affect the subsequent function of version conversion. Please refer
to the above for the meaning of log file.
Example
1. AcmeDWGConverter /g14 a.dwg a14.dwg
Convert a.dwg to a14.dwg, a DWG file in Version 14.0.
2. AcmeDWGConverter /x10 a.dwg a10.dxf
Convert a.dwg to a10.dxf, a10 DXF file in Version 10.0.
3. AcmeDWGConverter /x a.dxf a2000.dxf
Convert a.dxf to a2000.dxf, a2000 DXF file in Version 2000.
4. AcmeDWGConverter /r /l Convert.log /x10 a.dwg a10.dxf /g14 b.dxf b14.dwg /g10 c.dwg c10.dwg /x d.dxf d2000.dxf
Conversion of multiple files shall be done according to the sequence as
shown in the following example, and at the same time, the conversion
result should be recorded in convert.log file:
1) Convert a.dwg to a10.dxf, a10 DXF file in Version 10.0.
2) Convert b.dxf to b14.dwg, a14 DWG file in Version 14.0.
3) Convert c.dwg to c10.dwg, c10 DWG file in Version 10.0.
4) Convert d.dxf to d2000.dxf, d2000 DXF file in Version 2000.
Convert multi- drawing files into one PDF file new
AcmeDWGConverter /r /e /w 792 /h 612 /f 105 /d demo.PDF campus.dwg cirarc.dwg jyy.DWG
The example command line will convert the three dwg files: campus.dwg,
cirarc.dwg and jyy.dwg into one PDF file: demo.pdf, the PDF page size
is approximate 11x8.5 inch.
|