WriteAutodesk(IList<Entity>, IEnumerable<Layer>, IDictionary<StringBlock>, IDictionary<StringTextStyle>, IDictionary<StringLineType>, MaterialKeyedCollection, Stream, linearUnitsType, versionType, Double, Boolean, Boolean, Boolean, lineWeightUnitsType, Boolean) Constructor

NOTE: This member is now obsolete. Use the constructor that accepts the WriteParams instead.

To stream with AutoCAD version and deviation constructor.
Public Sub New( _ 
ByVal entList As IList(Of Entity), _ 
ByVal layerList As IEnumerable(Of Layer), _ 
ByVal blockDict As IDictionary(Of String, Block), _ 
ByVal textStyleDict As IDictionary(Of String, TextStyle), _ 
ByVal lineTypes As IDictionary(Of String, LineType), _ 
ByVal materials As MaterialKeyedCollection, _ 
ByVal stream As Stream, _ 
ByVal insUnits As linearUnitsType, _ 
ByVal version As versionType, _ 
Optional ByVal deviation As Double = 0, _ 
Optional ByVal aciColors As Boolean = true, _ 
Optional ByVal asciiStream As Boolean = false, _ 
Optional ByVal selectedOnly As Boolean = false, _ 
Optional ByVal lineWeightUnits As lineWeightUnitsType = lineWeightUnitsType.Millimeters, _ 
Optional ByVal purge As Boolean = false _ 
)
This language is not supported or no code example is available.
public WriteAutodesk( 
IList<Entity> entList
IEnumerable<Layer> layerList
IDictionary<string, Block> blockDict
IDictionary<string, TextStyle> textStyleDict
IDictionary<string, LineType> lineTypes
MaterialKeyedCollection materials
Stream stream
linearUnitsType insUnits
versionType version
double deviation = 0, 
bool aciColors = true, 
bool asciiStream = false, 
bool selectedOnly = false, 
lineWeightUnitsType lineWeightUnits = lineWeightUnitsType.Millimeters, 
bool purge = false 
)
This language is not supported or no code example is available.

Parameters

entList
IList<Entity>

The entity list

layerList
IEnumerable<Layer>

The layer list

blockDict
IDictionary<string, Block>

The block dictionary

textStyleDict
IDictionary<string, TextStyle>

The text style dictionary

lineTypes
IDictionary<string, LineType>

The line types dictionary

materials
MaterialKeyedCollection

stream
Stream

The file stream

insUnits
linearUnitsType

The units to scale inserted content (INSUNITS)

version
versionType

DWG/DXF file format version

deviation
double

Ellipse and Spline tessellation tolerance. Affects only versionType.Release12 version.

aciColors
bool

Saves the colors as Aci colors (Autocad color index) if possible

asciiStream
bool

If true, writes the stream in DXF ascii format, else in DWG binary format

selectedOnly
bool

If true, only selected entities at root level are written.

lineWeightUnits
lineWeightUnitsType

The line weight units

purge
bool

If true, purges all unused layers, line types, text styles and blocks from the saved file

Remarks
 
If the file already exists, it will be overwritten.

.NET Framework

Supported in: 4.8

In this article

Definition