本帖最后由 作者 于 2009-6-19 14:46:54 编辑
我想轉出一個固定長寬比例的wmf,設定好畫面的長寬,但"zomm" "_e" 時,畫面並不依實際畫面縮放.但我試著加入了(VL-CMDF pause),畫面還是不正確.但轉出的圖片正確了.求解. (Defun C:gg () (SetVar "WMFBKGND" 0) (SetVar "WMFFOREGND" 0) ;(setq oldWidth (vla-get-Width AcadObject)) (VL-LOAD-COM) (setq AcadObject(vlax-get-acad-object) ;object AcadDocument(vla-get-ActiveDocument AcadObject) ;Document mSpace(vla-get-ModelSpace AcadDocument) ;Space ) (vla-put-Width AcadDocument 800) (vla-put-Height AcadDocument 600) (Command "ZOOM" "_E") (SetQ wfn "c:\\abc.wmf") (Command "WMFOUT" wfn "all" "") (PrinC) ) |