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

完結,謝謝。

相關文章
相關標籤/搜索