AutoCAD学习

Acme的cmd line模式

2015-04-17  本文已影响494人  MarkRight

调用格式

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

**晕了吧? 下面细细讲解 **


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.开启命名行模式

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格式.

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

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

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

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

支持通配符: *, ?

"0" 1
"*" 0

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

[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

AcmeCadConverter /x10 a.dwg a10.dxf

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

AcmeCadConverter /x2007 a.dxf a2007.dxf

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

  1. Convert a.dwg to a10.dxf, a10 DXF file in Version 10.0.
  1. Convert b.dxf to b14.dwg, a14 DWG file in Version 14.0.
  2. Convert c.dwg to c10.dwg, c10 DWG file in Version 10.0.
  3. 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

完结,谢谢。

上一篇 下一篇

猜你喜欢

热点阅读