Saves the document or
menu group to a specified file.
Signatures
VBA : object.SaveAs
FileName, FileType
VL : (vla-SaveAs object
FileName FileType)
(vla-SaveAs thisdrawing name
acR14_DWG)
-
Object : Document,
MenuGroup
The object or objects this method applies to.
-
FileName : String;
input-only
The full path and file name, or valid URL address, for the file. The
active document or menu group takes on the new name.
-
MenuFileType :
AcMenuFileType enum; input-only; required for menu groups
acMenuFileCompiled
|
A
compiled menu file (MNC file type).
|
acMenuFileSource
|
A
source menu file (MNS file type).
|
acR12_DXF
|
AutoCAD
Release12/LT2 DXF (*.dxf)
|
acR13_DWG
|
AutoCAD
Release13/LT95 DWG (*.dwg)
|
acR13_DXF
|
AutoCAD
Release13/LT95 DXF (*.dxf)
|
acR14_DWG
|
AutoCAD
Release14/LT97 DWG (*.dwg)
|
acR14_DXF
|
AutoCAD
Release14/LT97 DXF (*.dxf)
|
acR15_DWG
|
AutoCAD
2000 DWG (*.dwg)
|
acR15_DXF
|
AutoCAD
2000 DXF (*.dxf)
|
acR15_Template
|
AutoCAD
2000 Drawing Template File (*.dwt)
|
acNative
|
A
synonym for the latest drawing release. In this
release, this
value equals acR15_DWG.
|
Remarks
The default file type for
documents is acR15_DWG.
Documents can only be
saved as AutoCAD drawing files with the extension DWG. To save a
document in a different file type, use the Export
method.
When saving to a secure
URL a dialog box will be posted prompting the user for the necessary
password information. Message boxes may also appear if the user has not
suppressed this activity in their browser.
Example :
(defun c:al-SaveAs ()
(vl-load-com)
(setq thisdrawing
(vla-get-activedocument
(vlax-get-acad-object)))
(setq name (strcat "R14-" (getvar "DWGNAME")))
(vla-SaveAs thisdrawing name acR14_DWG)
(princ)
);defun
|
|