Export Method |
Exports an AutoCAD drawing or a group of saved layer settings to a file.
Signatures: Overview
Drawings
object.Export FileName, Extension, SelectionSet
Layer Settings
object.Export Name, FileName
Signatures: Detail
object.Export FileName, Extension, SelectionSet
Object
Document
The object or objects this method applies to.
FileName
String; input-only
The name for the newly exported file.
Extension
String; input-only
This string should contain three characters specifying the type of
file to export the drawing into. Case is not important. Use one of
the following extensions: .wmf, .sat, .eps, .dsf, or
.bmp.
SelectionSet
SelectionSet object;
input-only
For WMF, SAT, and BMP formats, the selection set specifies the
objects to be exported. For EPS and DXF formats, the selection set
is ignored and the entire drawing is exported.
object.Export Name, FileName
Object
LayerStateManager
A LayerStateManager object.
Name
String; input-only
The name of the saved layer settings you are exporting.
FileName
String; input-only
The name of the file you are exporting layer settings to.
Remarks
When exporting to WMF or BMP formats, a nonempty selection set must be provided. This selection set specifies the objects from the drawing to export. If an empty selection set is provided, AutoCAD will prompt the user to select the objects to export.
When exporting to SAT format, a nonempty selection set must be provided. This selection set specifies the objects from the drawing to export. Only Region objects, 3DSolid objects, non-manifold solids, and other ShapeManager entities that do not fit the characteristics of the 3DSolid or Region objects will be exported; all other objects in the selection set will be ignored. If an empty selection set is provided, AutoCAD will not prompt the user to select the objects to export.
When exporting to EPS and DXF formats, the selection set is ignored and the entire drawing is exported.
When exporting saved layer settings, you must name your output file with a .las extension in order for AutoCAD to automatically identify it as a saved layer settings export file.
Comments? |