tukuitk 发表于 2004-4-21 15:26:00

[讨论]关于上万张图怎样减肥好,on earth?

有上万张图纸,有的图纸有4M多,用PURGEALL的效果微乎其微!!!用VB板块的那个用VB写的减肥程序也是效果微乎其微!!!但是用写块的方法写出去后只有几百K!!!


到底用什么方法来减肥好呢?我想先用PURGEALL清理一次后再用EXPORT另存文件,可能效果显著!但我编不出不打开图(用DBX技术)批量减肥的程序(虽然飞哥曾经给我写过用DBX替换文字的程序,但我太笨了,还是不会,飞哥别骂我,55555……),请各位帮忙!谢谢!!!


以下是一个例图:

myfreemind 发表于 2004-4-21 21:44:00

export输出可以减肥,那你可以做一个循环,打开多个文档,把输出命令写在里面就可以了

tukuitk 发表于 2004-4-22 09:19:00

但是把每个图纸打开后(显示出来)再输出,会很慢的!我想有没有办法不显示出图形,让CAD在后台运行打开再输出的过程?用DBX技术可以吗?谢谢!

龙龙仔 发表于 2004-4-22 16:38:00

<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3>我只能縮成<FONT face="Times New Roman">70KB</FONT></FONT>

myfreemind 发表于 2004-4-22 18:44:00

我缩成了78K

BDYCAD 发表于 2004-4-22 18:53:00

我搞不明的是樓主你的圖為什麼里面這樣少東西卻要弄到要這麼大的空間?

myfreemind 发表于 2004-4-22 18:54:00

很奇怪,你的图块输出后就减肥那么多,我的地形图块输出后基本上没减肥多少,呵呵

BDYCAD 发表于 2004-4-22 19:01:00

樓上你的地形是不是用SPLINE畫的呀?

myfreemind 发表于 2004-4-22 22:16:00

各种线形都有,:)


好象没有什么办法减肥

龙龙仔 发表于 2004-4-23 08:27:00

<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3>由於<FONT face="Times New Roman">dbx &amp; vlisp </FONT>是使用<FONT face="Times New Roman">activcx ,</FONT></FONT>


<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3>但在<FONT face="Times New Roman">vlisp</FONT>的<FONT face="Times New Roman">wblock</FONT>方法並無整圖輸出<FONT face="Times New Roman">,</FONT>只能單一空間<FONT face="Times New Roman">(SelectionSet </FONT>不能包含多個空間<FONT face="Times New Roman">)</FONT>作輸出</FONT>


<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT face="Times New Roman">1. Wblock</FONT>方法<FONT face="Times New Roman">:</FONT></FONT>


<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman" size=3>Writes out the given selection set as a new drawing file. </FONT>


<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman" size=3>Signature</FONT>


<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman" size=3>object.WBlock FileName, SelectionSet </FONT>


<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman" size=3>Object<SPAN style="mso-tab-count: 1">                                       Document</FONT></SPAN>


<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman" size=3>The object or objects this method applies to.</FONT>


<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman" size=3>FileName<SPAN style="mso-tab-count: 1"> String; input-only</FONT></SPAN>


<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman" size=3>The file name to write the selection set to.</FONT>


<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman" size=3>SelectionSet<SPAN style="mso-tab-count: 1">                               SelectionSet object; input-only</FONT></SPAN>


<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman" size=3>The name of the selection set.</FONT>


<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p><FONT face="Times New Roman" size=3>        </FONT></o:p>


<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT face="Times New Roman">2. Export</FONT>方法雖有整圖輸出為<FONT face="Times New Roman">dxf,</FONT>但沒有減肥效果<o:p></o:p></FONT>


<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><o:p><FONT size=3>        </FONT></o:p>


<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3>3.也試了建立新圖,把各個空間分別轉入新圖,但在轉入圖紙空間時出了一個其怪的現象(當圖紙空間中有多個viewport,如:4個可見viewport(圖紙空間是不可見viewport,dxf 69 為1),那在正常的圖檔就是5個viewport了,但當我把那以為是5個viewport轉入圖紙空間時,發現因圖檔為非作用圖檔,那圖紙空間(69 . 1)似乎轉為那4個可見viewport所用(即只有4個viewport),至轉入時有一viewport總是出錯,問題研究中&shy;&shy;__但解決希望極低<SPAN style="mso-spacerun: yes">       8-(<o:p></o:p></SPAN></FONT>


<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><o:p><FONT size=3>        </FONT></o:p>


<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3>結論:看來還是要回老路------scr<o:p></o:p></FONT>


<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><o:p><FONT size=3>        </FONT></o:p>


<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><o:p><FONT size=3>        </FONT></o:p>
页: [1] 2 3 4 5
查看完整版本: [讨论]关于上万张图怎样减肥好,on earth?