object.SaveAs FileName, FileType [, SecurityParams]
Object
Document, MenuGroup
The object or objects this method applies to.
Note This method has no effect for menu groups.
FileName
String; input-only
The full path and file name, or valid URL address, for the file. The active document takes on the new name.
FileType
AcSaveAsType enum; input-only; optional for Document objects
acR14_dwg
AutoCAD R14 DWG (*.dwg)
ac2000_dwg
AutoCAD 2000 DWG (*.dwg)
ac2000_dxf
AutoCAD 2000 DXF (*.dxf)
ac2000_Template
AutoCAD 2000 Drawing Template File (*.dwt)
ac2004_dwg
AutoCAD 2004 DWG (*.dwg)
ac2004_dxf
AutoCAD 2004 DXF (*.dxf)
ac2004_Template
AutoCAD 2004 Drawing Template File (*.dwt)
ac2007_dwg
AutoCAD 2007 DWG (*.dwg)
ac2007_dxf
AutoCAD 2007 DXF (*.dxf)
ac2007_Template
AutoCAD 2007 Drawing Template File (*.dwt)
acNative
A synonym for the latest drawing release. In this release, this value equals ac2007_dwg.
这个应该在CAD中设置吧,打开CAD、工具、选项,在打开和保存中设置为保存格式为dxf格式。
(defun c:dxf()
(command "dxfout" "" "")
(print)
);defun
用LISP,直接就OK。