WriteAutodesk Class

Helper class to export geometry in DWG/DXF file format.
Public Class WriteAutodesk 
Inherits WriteDatabase
This language is not supported or no code example is available.
public class WriteAutodesk : WriteDatabase
This language is not supported or no code example is available.
Name Description
Public constructor WriteAutodesk(Environment, Stream, bool, bool, bool, lineWeightUnitsType, bool) Obsolete. Standard constructor with stream.
Public constructor WriteAutodesk(Environment, Stream, versionType, bool, bool, bool, lineWeightUnitsType, bool) Obsolete. To stream with AutoCAD version constructor.
Public constructor WriteAutodesk(Environment, Stream, versionType, double, bool, bool, bool, lineWeightUnitsType, bool) Obsolete. To stream with AutoCAD version and deviation constructor.
Public constructor WriteAutodesk(IList<Entity>, IEnumerable<Layer>, IDictionary<StringBlock>, IDictionary<StringTextStyle>, IDictionary<StringLineType>, MaterialKeyedCollection, Stream, linearUnitsType, versionType, double, bool, bool, bool, lineWeightUnitsType, bool) Obsolete. To stream with AutoCAD version and deviation constructor.
Public constructor WriteAutodesk(IList<Entity>, IEnumerable<Layer>, IDictionary<StringBlock>, IDictionary<StringTextStyle>, IDictionary<StringLineType>, MaterialKeyedCollection, string, linearUnitsType, versionType, string, double, bool, bool, lineWeightUnitsType, bool) Obsolete. Version, password and deviation constructor.
Public constructor WriteAutodesk(IList<Entity>, IEnumerable<Layer>, IDictionary<StringBlock>, IDictionary<StringTextStyle>, string, linearUnitsType, versionType, string, double, bool, bool, lineWeightUnitsType, bool) Obsolete. Version, password and deviation constructor.
Public constructor WriteAutodesk(IList<Entity>, IEnumerable<Layer>, IDictionary<StringBlock>, IDictionary<StringTextStyle>, IDictionary<StringLineType>, Stream, linearUnitsType, bool, bool, bool, lineWeightUnitsType, bool) Obsolete. Standard constructor with stream.
Public constructor WriteAutodesk(IList<Entity>, IEnumerable<Layer>, IDictionary<StringBlock>, IDictionary<StringTextStyle>, IDictionary<StringLineType>, Stream, linearUnitsType, versionType, bool, bool, bool, lineWeightUnitsType, bool) Obsolete. To stream with AutoCAD version constructor.
Public constructor WriteAutodesk(IList<Entity>, IEnumerable<Layer>, IDictionary<StringBlock>, IDictionary<StringTextStyle>, IDictionary<StringLineType>, string, linearUnitsType, bool, bool, lineWeightUnitsType, bool) Obsolete. Standard constructor.
Public constructor WriteAutodesk(IList<Entity>, IEnumerable<Layer>, IDictionary<StringBlock>, IDictionary<StringTextStyle>, IDictionary<StringLineType>, string, linearUnitsType, versionType, bool, bool, lineWeightUnitsType, bool) Obsolete. Version constructor.
Public constructor WriteAutodesk(IList<Entity>, IEnumerable<Layer>, IDictionary<StringBlock>, IDictionary<StringTextStyle>, Stream, linearUnitsType, versionType, double, bool, bool, bool, lineWeightUnitsType, bool) Obsolete. To stream with AutoCAD version and deviation constructor.
Public constructor WriteAutodesk(Model, string, bool, bool, lineWeightUnitsType, bool) Obsolete. Standard constructor.
Public constructor WriteAutodesk(Model, string, versionType, bool, bool, lineWeightUnitsType, bool) Obsolete. Version constructor.
Public constructor WriteAutodesk(Model, string, versionType, string, double, bool, bool, lineWeightUnitsType, bool) Obsolete. Version, password and deviation constructor.
Public constructor WriteAutodesk(WriteAutodeskParams, Stream) To stream with write params.
Public constructor WriteAutodesk(WriteAutodeskParams, string) To file with write params.
Top
Name Description
Public property Angle Gets or sets the maximum angular deflection in radians, ignored when zero. (inherited from WriteFileAsync).
Public property ComposingBlocksText Gets or sets the "Composing blocks..." text string. (inherited from WriteFileAsync).
Public property ComposingEntitiesText Gets or sets the "Composing entities..." text string. (inherited from WriteFileAsync).
Public property ComposingText Gets or sets the "Composing..." text string. (inherited from WriteFileAsync).
Public property Deviation Gets or sets the maximum deviation, zero for current tessellation. (inherited from WriteFileAsync).
Public property ExecutionTime Gets the (last) work execution time in milliseconds. (inherited from WorkUnit).
Public property FileName The name of the file that will be created. (inherited from WriteFileAsync).
Public property Log Gets the list of errors and warnings generated during execution. (inherited from WorkUnit).
Public property Status Gets the WorkUnit status. (inherited from WorkUnit).
Public property Stream The stream for writing. (inherited from WriteFileAsync).
Public property Static SupportedLinearUnitsType Gets the supported linear units (inherited from WriteDatabase).
Public property WritingText Gets or sets the "Writing..." text string. (inherited from WriteFileAsync).
Top
Methods
 
Name Description
Internal protected (Protected Friend) method Cancelled(BackgroundWorker, DoWorkEventArgs) Checks if the user has requested cancellation of the background operation. (inherited from WorkUnit).
Internal protected (Protected Friend) method CloseStream() (inherited from WriteFileAsync).
Protected method ComputeBoundingBox(out Point3D, out Point3D) Compute scene extents. (inherited from WriteFileAsync).
Protected method DoWork(BackgroundWorker, DoWorkEventArgs) Does the actual work allowing progress bar update and cancellation.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (inherited from Object).
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Protected method GetEntities() For internal use only. (inherited from WriteFileAsync).
Public method GetHashCode Serves as the default hash function. (inherited from Object).
Public method GetType Gets the Type of the current instance. (inherited from Object).
Protected method InitLayers(LayerKeyedCollection) Initializes the layers collection with only the exportable ones. (inherited from WriteDatabase).
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Protected method PrepareForWriting(string, Dictionary<StringString>, IList<Entity>, LayerKeyedCollection, BlockKeyedCollection, TextStyleKeyedCollection, LineTypeKeyedCollection, MaterialKeyedCollection, out LayerKeyedCollection, out TextStyleKeyedCollection, out LineTypeKeyedCollection, out MaterialKeyedCollection, out Dictionary<StringString>, out Dictionary<StringString>, out BlockKeyedCollection)
Protected method Static RemoveInvalidChars(string) Removes forbidden chars from a string representing a file path. (inherited from WriteFileAsync).
Internal protected (Protected Friend) method ResetProgressParallel(int) Resets the progress bar for a parallel loop. (inherited from WorkUnit).
Internal protected (Protected Friend) method SetWriter(IDisposable) (inherited from WriteFileAsync).
Protected method SortEntitiesForWriteAutodesk(IList<Entity>) Gives the opportunity to sort entities before export. (inherited from WriteDatabase).
Internal protected (Protected Friend) method StartContinuousAnimation(string, BackgroundWorker, params string[]) Start the animation for the continuous progress bar. (inherited from WorkUnit).
Internal protected (Protected Friend) method StopContinuousAnimation(BackgroundWorker) Stop the animation for the continuous progress bar. (inherited from WorkUnit).
Protected method SynchronizeAttributeReference(BlockKeyedCollection, IList<Entity>) Helper method to synchronize all the attribute reference before writing the file. (inherited from WriteFileAsync).
Protected method SynchronizeAttributeReference(Environment) Helper method to synchronize all the attribute reference before writing the file. (inherited from WriteFileAsync).
Public method ToString Returns a string that represents the current object. (inherited from Object).
Internal protected (Protected Friend) method UpdateProgress(double, double, string, BackgroundWorker, bool, params string[]) Updates the progress bar value. (inherited from WorkUnit).
Internal protected (Protected Friend) method UpdateProgress(int, int, string, BackgroundWorker, bool, params string[]) Updates the progress bar value. (inherited from WorkUnit).
Internal protected (Protected Friend) method UpdateProgressAndCheckCancelled(int, int, string, BackgroundWorker, DoWorkEventArgs, bool, params string[]) Updates the progress bar value and checks if the worker thread has been canceled. (inherited from WorkUnit).
Internal protected (Protected Friend) method UpdateProgressAndCheckCancelledParallel(int, string, BackgroundWorker, DoWorkEventArgs, params string[]) Updates the progress bar value and checks if the worker thread has been canceled, for a parallel loop. (inherited from WorkUnit).
Internal protected (Protected Friend) method UpdateProgressParallel(double, string, BackgroundWorker, params string[]) Updates the progress bar value for a parallel loop. (inherited from WorkUnit).
Internal protected (Protected Friend) method UpdateProgressTo100(string, BackgroundWorker, params string[]) Set the progress bar to 100% and forces screen update. (inherited from WorkUnit).
Internal protected (Protected Friend) method WorkCancelled(Environment) Called when the work is cancelled. (inherited from WriteFileAsync).
Internal protected (Protected Friend) method WorkCompleted(Environment) Called when the work has completed. In the case you are modeling something, the environment parameter allows you to easily add the model to the entities collection. (inherited from WorkUnit).
Internal protected (Protected Friend) method WorkFailed(Environment) Called when the work has failed. (inherited from WorkUnit).
Protected method WriteDatabaseInternal(string, IList<Entity>, BackgroundWorker, DoWorkEventArgs, OdDbDatabase, LayerKeyedCollection, BlockKeyedCollection, Dictionary<StringString>, TextStyleKeyedCollection, LineTypeKeyedCollection, MaterialKeyedCollection, attributeReferenceVisibilityType, bool, string) (inherited from WriteDatabase).
Protected method WriteFile(OdDbDatabase)
Top
Events
 
Name Description
Public event ProgressChanged Occurs when the DoWork() is called synchronously and the progress has changed. (inherited from WorkUnit).
Top
Name Description
Public enumeration blockExportType Block export type.
Public enumeration formatType
Public enumeration versionType AutoCAD file version type.
Top
Fields
 
Name Description
Protected field _explodeViews (inherited from WriteDatabase).
Protected field aciColors If true, saves the colors as Aci colors (Autocad color index) if possible (inherited from WriteDatabase).
Protected field attributeReferenceVisibilityMode (inherited from WriteDatabase).
Protected field author (inherited from WriteFileAsyncWithUnits).
Protected field blocks (inherited from WriteFileAsync).
Protected field curvesAsFitSpline (inherited from WriteDatabase).
Protected field entities (inherited from WriteFileAsync).
Protected field foregroundColor The color saved as foreground color ( AutoCAD color index 7). (inherited from WriteDatabase).
Protected field format Gets or sets the AutoCAD file format.
Protected field hatchPatterns (inherited from WriteDatabase).
Protected field layers (inherited from WriteFileAsync).
Protected field lineTypes (inherited from WriteDatabase).
Protected field lineWeightUnits Gets or sets the units in which are expressed the line weights. (inherited from WriteDatabase).
Internal protected (Protected Friend) field log (inherited from WorkUnit).
Protected field materials (inherited from WriteDatabase).
Protected field organization (inherited from WriteFileAsyncWithUnits).
Protected field originatingSystem (inherited from WriteFileAsyncWithUnits).
Protected field password Gets or sets the AutoCAD file password.
Protected field purge If true, purges all unused layers, line types, text styles and blocks from the saved file. (inherited from WriteDatabase).
Protected field saveGeometry (inherited from WriteDatabase).
Protected field selectedOnly When true only the selected entities will be written. (inherited from WriteFileAsync).
Protected field sheets (inherited from WriteDatabase).
Protected field sheetsExtraEntities (inherited from WriteDatabase).
Protected field textStyles (inherited from WriteDatabase).
Protected field textureImagesPath Gets or sets the path for the output texture images of materials. (inherited from WriteDatabase).
Protected field units (inherited from WriteFileAsyncWithUnits).
Protected field version Gets or sets the versionType.
Protected field viewport (inherited from WriteDatabase).
Protected field writeFileCloseStream True when the constructors with filename is used, otherwise false. (inherited from WriteFileAsync).
Top

.NET Framework

Supported in: 4.8

In this article

Definition