Acme的cmd line模式

调用格式ide

AcmeCadConverter [/r] [/e] [/m] [/info] [/l filaname] [/ls] [/info] [/p integer] [/w integer] [/h integer] [/b integer] [/j integer] [/f integer] [filename] [filename] ...svg

晕了吧? 下面细细讲解布局

Acme CAD Converter 命令行解释:

/r It will run on command line mode, immediately 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自动缩放
  • /ls 使用layout纸张大小
  • /m Includes mask raster file
  • /wm 使用水印
  • /wmfile 水印文件wmk 格式, 例如: /wmfile "c:\wm\1.wmk".
  • /l report文件名, 必须用在/r 参数后, 不然无效。this

  • /p 整数, 1 纯黑模式 ,2 灰度模式,3 256彩色模式spa

  • /w 宽度,默认为 800.支持单位, (420mm = 420 mm, 11in = 11 inch), 没有指定格式时默认采用像素为单位。
    /h 高度 默认600,其他说明同宽度命令行

  • /res 输出质量控制参数,单位为DPI(单位英寸像素点)scala

  • /ad 检测并适应当前纸张大小日志

  • /b 背景颜色 [0-black, 1-red, 2-yellow, 3-green, 4-aqua, 5-blue, 6-Magenta, 7-White, 8-Dark Gray], 其余色参考颜色选项窗口,默认为7 白色。code

  • /j jpg格式质量,1最低,10最高,默认是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 输出文件格式

    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)

    默认为1- bmp格式.

  • /d 输出目录,或者pdf文件名。

    转换多个文件到1个pdf文件时,即'/f105',须要写为'/d pdf_file_name',
    其余状况这个选项指定全部的输出文件到指定的文件夹。

  • /_ 文件名中分隔符,例如test.dwg中有多个layout时,输出为"test_layout1.pdf", 默认为 '/-'.

  • /- 雷同文件名中分隔符

  • /a 布局须要,

0 : 老是转换模型空间
1 : 转换第1张布局.
2 : 转换第2张布局,后面以此类推.

-1 : 转换当前布局.
-2 :转换所有布局.
-3 :转换所有(模型空间+布局空间)
布局列表文件名: 你能够指定一个文件,其中包含的列表用来告诉转换器须要转换哪一个布局,例如

/a "c:\cfg\layoutcfg.txt", layoutcfg.txt中的文件内容是

"layout1"
"A2"
"A3"
"DWF*"

支持通配符: *, ?

  • /pw 画笔设置,后面紧跟一个画笔设置文件的名字,例如/pw myset ,文件能够用程序设置。
  • /lw 启用线宽
    /lw 1 启用样式,并启用线宽
    /lw 2 启用样式,忽略线宽
    /lw 0 忽略 (默认选项)
  • /info svg格式时,输出实体信息,如type,layer,color,linetype...

  • /bookmark 输出书签到pdf

  • /layer 输出图层信息到pdf

  • /hide 移除隐藏线 0-不移除,1-自动,2-强制。

  • /scale 缩放,后面指定值告诉程序缩放大小,当前仅支持pdf格式。

  • /margin 输出页的页边距,单位默认为英寸 inch,当使用/scale时次参数才有效。

  • /key 注册码,有时命令行模式转换器不能读取注册码,你须要指定注册码。

  • /layerop 经过配置文件指定图层状态,

    "0" 1
    "*" 0

    表示0层打开
    其余层都关闭。

  • /resource 指定资源文件路径,例如字体,图片,外部连接块......,而且可控制字体替换选项
    其配置文件在ini文件中,以下:

    [path list]
    dir_0=c:\fonts
    dir_1=d:\cadfonts
    dir_2=d:\images
    dir_3=d:\ref_blocks
    [replace fonts]
    enabled=true
    only_ttf=false
    ttf_font=Arial
    small_font=txt
    big_font=hzdx
    [end]

举个例子:
AcmeCADConverter /r /resource "c:\setting\searchres.ini" /e /ls /p 1 /f 104 /w 1200 /h 800 /a -2 /bookmark "d:\test.dwg"

注意:

  1. /r参数 前面的文件可以简单的打开,只有/r 参数后面的文件才能立刻转换。 Files in front of /r parameter can be opened simply, only those after /r parameter can be converted instantly.
  2. 不须要给 输出的格式指定文件名,acme转换器能够根据文件格式自动生成 。
  3. 生成的文件与dwg同文件夹。
  4. /l参数必须紧跟/r参数,不然不能生成报告文件。
  5. Format and meaning of the report file
  6. 转换多个dwg到1个pdf文件时,you can't set the width or height to 0, and 1 unit of widht or height is 1/72 inch, but CAD Converter will increase 30 units because the page margin is 15 units.

报告

  1. 每行使用整数表示转换结果
  2. 整数的意思:

    0 --> 成功
    1 -->内存不足
    2 --> 绘图失败
    3 --> 图纸打开失败
    4 --> 无效文件

单位

HPGL 文件: 1 unit = 1/42 mm

PDF 文件: 1 unit = 1/72 inch

例如

AcmeCADConverter /r /e /ls /p 1 /f 104 /w 1200 /h 800 /a -2 /bookmark /hide 1 /pw "penset" "d:\test.dwg"

转换

d:\test.dwg
自动缩放
使用页面大小布局纸张
黑白模式
pdf格式
`宽度1200 高800
所有布局
输出书签
自动除去隐藏线

画笔须要本身设置。

另一个
AcmeCADConverter /r /ad /ls /p 1 /f 104 /w 17in /h 11in /res 400 /a -2 /pw "penset" "d:\test.dwg"

使用页面大小,自动缩放
黑白模式
pdf格式
宽度17inch(若是可能)
高度11 inch(若是可能)
转换所有布局空间
使用画笔(自定义)
精度 400DPI

cad版本转换

AcmeCadConverter [/g[version]] [/x[version]] srcfile destfile
-/g cad格式
-/x dxf格式

CAD版本号(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
2007 -> Version 2007
2010 -> Version 2010

默认2004格式。

解释

转换完成后,当即关闭该程序。/g /x必须在输入文件名(须要转换的文件)的前面,次序不能颠倒。一次只能转换一个文件,但相同参数可以重复使用,具体见下面例子。

转换版本一样支持log日志功能,一样注意 -/r 参数必须在 /l参数前面,不然无效。

Example
AcmeCadConverter /g14 a.dwg a14.dwg

  • 转换 a.dwg 到 R14的a14.dwg`

AcmeCadConverter /x10 a.dwg a10.dxf

转换a.dwg到a10.dxf, a10 DXF 是 10.0版本。

AcmeCadConverter /x2007 a.dxf a2007.dxf

  • 转换 a.dxf 到 a2007.dxf, a2007 DXF是2007格式.

AcmeCadConverter /r /l Convert.log /x10 a.dwg a10.dxf /g14 b.dxf b14.dwg /g10 c.dwg c10.dwg /x d.dxf d2000.dxf

  • 转换多个文件(见下面过程),并记录结果到log文件
  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.

转换多个文件到1个pdf

AcmeCadConverter /r /e /w 792 /h 612 /f 105 /d demo.PDF campus.dwg cirarc.dwg jyy.DWG
转换 campus.dwg, cirarc.dwg and jyy.dwg 这3个文件到1个pdf文件——demo.pdf,
PDF文件页面大小为11x8.5 in

完结,谢谢。

相关文章
相关标签/搜索