ReadDWF Class

Utility class for loading Dwf files asynchronously.
Public Class ReadDWF 
Inherits ReadAutodesk
This language is not supported or no code example is available.
public class ReadDWF : ReadAutodesk
This language is not supported or no code example is available.
Name Description
Public property AttributeReferenceVisibilityMode Gets or sets the AttributeReference visibility mode. (inherited from ReadAutodesk).
Public property BasePoint Gets the base point of the entities, read from the file. (inherited from ReadAutodesk).
Public property Blocks Gets or sets the blocks resulting from file reading. (inherited from ReadFileAsyncWithBlocks).
Public property CheckLimit Gets if items outside of the grid are possible (inherited from ReadAutodesk).
Public property DrawingsBlocks Gets the drawings blocks referenced by layouts resulting from file reading. (inherited from ReadFileAsyncWithDrawings).
Public property DrawingsHatchPatterns Gets the drawings hatch patterns referenced by layouts resulting from file reading. (inherited from ReadFileAsyncWithDrawings).
Public property DrawingsLayers Gets the drawings layers referenced by layouts resulting from file reading. (inherited from ReadFileAsyncWithDrawings).
Public property DrawingsLineTypes Gets the drawings line types referenced by layouts resulting from file reading. (inherited from ReadFileAsyncWithDrawings).
Public property DrawingsSheets Gets the drawings sheets read from the file. (inherited from ReadFileAsyncWithDrawings).
Public property DrawingsTextStyles Gets the drawings text styles referenced by layouts resulting from file reading. (inherited from ReadFileAsyncWithDrawings).
Public property Entities Gets the entities resulting from file reading. (inherited from ReadFileAsync).
Public property ExecutionTime Gets the (last) work execution time in milliseconds. (inherited from WorkUnit).
Public property ExplodeDimensions If true, the Dimension and Leader are exploded to their inner entities when loaded and put in Blocks with "Dimension_#" name. (inherited from ReadAutodesk).
Public property ExtrudeByThickness Gets or sets a value indicating whether the curves or solid entities with a defined thickness value are extruded as Mesh or Surface. (inherited from ReadAutodesk).
Public property FailedToLoad Gets the block references that failed to load. (inherited from ReadAutodesk).
Public property FileName Gets the file name. (inherited from ReadFileAsync).
Public property FixErrors If true, checks the drawing database consistency and fixes the errors. (inherited from ReadAutodesk).
Public property ForegroundColor Gets or sets the color assigned to entities and layers that were saved with foreground color method ( AutoCAD color index 7). (inherited from ReadAutodesk).
Public property HatchPatterns Gets the model collection of the hatch patterns read from the file. (inherited from ReadFileAsyncWithDrawings).
Public property LayersToLoad Gets or sets the list of layers to load. Only the Entities on these layers will be loaded. (inherited from ReadAutodesk).
Public property LineTypes Gets the model collection of the line types read from the file. (inherited from ReadFileAsyncWithDrawings).
Public property Log Gets the list of errors and warnings generated during execution. (inherited from WorkUnit).
Public property Materials Gets the collection of materials read from the file. (inherited from ReadFileAsyncWithDrawings).
Public property Max Gets the Bounding Box maximum point. (inherited from ReadAutodesk).
Public property MaxLimit Gets the maximum limit point (inherited from ReadAutodesk).
Public property Min Gets the Bounding Box minimum point. (inherited from ReadAutodesk).
Public property MinLimit Gets the minimum limit point (inherited from ReadAutodesk).
Public property ModelXData Gets the XData value list of the Model_Space block. (inherited from ReadAutodesk).
Public property OriginalFileVersion Gets the version of the imported AutoCAD file. (inherited from ReadAutodesk).
Public property ParsingBlocksText Gets or sets the "Parsing blocks..." text string. (inherited from ReadFileAsyncWithBlocks).
Public property ParsingEntitiesText Gets or sets the "Parsing entities..." text string. (inherited from ReadFileAsync).
Public property ParsingText Gets or sets the "Parsing..." text string. (inherited from ReadFileAsync).
Public property Password Gets or sets the AutoCAD file password, can be null/Nothing.. (inherited from ReadAutodesk).
Public property Path Gets input file path. (inherited from ReadFileAsync).
Public property ReadingText Gets or sets the "Reading..." text string. (inherited from ReadFileAsync).
Public property Result Gets the result of reading operation (true if the operation succeeded). (inherited from ReadFileAsync).
Public property SearchFolders Gets the list of search folders for the missing XReferences. (inherited from ReadAutodesk).
Public property Simplify Controls if generic surfaces are converted to PlanarSurface, TabulatedSurface or RevolvedSurface and generic curves are converted to Line, Arc or Circle to improve import speed. (inherited from ReadAutodesk).
Public property SkipExternalReferences Gets or sets a value indicating whether the external references are skipped by the loading. (inherited from ReadAutodesk).
Public property SkipLayouts Gets or sets a value indicating whether the layouts inside the paper spaces are skipped by the loading. (inherited from ReadAutodesk).
Public property SkipOleObjects Gets or sets a value indicating whether the Ole2Frame objects are skipped by the loading. (inherited from ReadAutodesk).
Public property SkipProxies Gets or sets a value indicating whether the proxies are skipped by the loading. (inherited from ReadAutodesk).
Public property Status Gets the WorkUnit status. (inherited from WorkUnit).
Public property Stream Gets current stream. (inherited from ReadFileAsync).
Public property SupportedLinearUnitsType Gets the supported linear units (inherited from ReadAutodesk).
Public property TextStyles Gets the model collection of text styles read from the file. (inherited from ReadFileAsyncWithDrawings).
Public property Units Gets or sets imported geometry linear units. (inherited from ReadFileAsyncWithBlocks).
Protected property buildDefaultDrawing (inherited from ReadAutodesk).
Protected property noDocument (inherited from ReadAutodesk).
Top
Methods
 
Name Description
Public method AddToDrawings(Drawings) Adds sheets, blocks, layers, text styles, line types read from the file to the drawings control. (inherited from ReadAutodesk).
Public method AddToScene(Environment, RegenOptions) Adds to the Environment control the entities loaded from the file, along with the other master collections. Items contained previously in the Environment are merged, except the root block that is replaced with the one loaded from the file, if it exists. (inherited from ReadAutodesk).
Public method AddToScene(Environment, bool, RegenOptions) Adds to the Environment control the entities loaded from the file, along with the other master collections. Items contained previously in the Environment are merged. (inherited from ReadAutodesk).
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() Closes the stream. Must be called by all derived classes. (inherited from ReadFileAsync).
Public method CreateXRef(string, Point3D, Environment, string, blockExportType) Creates a block with the loaded entities, adds it to the Environment, marks it as external reference and returns a BlockReference to that block. (inherited from ReadAutodesk).
Protected method DoWork(BackgroundWorker, DoWorkEventArgs) Does the actual work allowing progress bar update and cancellation. (inherited from ReadAutodesk).
Public method Equals(Object) Determines whether the specified object is equal to the current object. (inherited from Object).
Public method FillAllCollectionsData(Environment) Automatically merges all master collections with existing ones. (inherited from ReadFileAsync).
Protected method FillAllDrawingsCollectionsData(Drawings) Automatically merges all the drawings collections with existing ones. (inherited from ReadFileAsyncWithDrawings).
Public method FillBlocks(Environment, bool, RegenOptions, bool) Automatically merges block definitions with existing ones. (inherited from ReadFileAsyncWithBlocks).
Public method FillDrawingsBlocks(Drawings) Automatically merges drawings blocks with existing ones. (inherited from ReadFileAsyncWithDrawings).
Public method FillDrawingsHatchPatterns(Drawings) Automatically merges drawings hatch patterns with existing ones. (inherited from ReadFileAsyncWithDrawings).
Public method FillDrawingsLayers(Drawings) Automatically merges drawings layers with existing ones. (inherited from ReadFileAsyncWithDrawings).
Public method FillDrawingsLineTypes(Drawings) Automatically merges drawings line types with existing ones. (inherited from ReadFileAsyncWithDrawings).
Public method FillDrawingsSheets(Drawings) Automatically merges sheets with existing ones. (inherited from ReadFileAsyncWithDrawings).
Public method FillDrawingsTextStyles(Drawings) Automatically merges drawings text styles with existing ones. (inherited from ReadFileAsyncWithDrawings).
Public method FillHatchPatterns(Environment) Automatically merges hatch patterns with existing ones. (inherited from ReadFileAsyncWithDrawings).
Public method FillLayers(Environment) Automatically merges layers with existing ones. (inherited from ReadFileAsyncWithBlocksAndLayers).
Public method FillLineTypes(Environment) Automatically merges line types with existing ones. (inherited from ReadFileAsyncWithDrawings).
Public method FillMaterials(Model) Automatically merges materials with existing ones. (inherited from ReadFileAsyncWithDrawings).
Public method FillTextStyles(Environment) Automatically merges text styles with existing ones. (inherited from ReadFileAsyncWithDrawings).
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).
Public method GetHashCode Serves as the default hash function. (inherited from Object).
Public method GetThumbnail() Gets the thumbnail. (inherited from ReadAutodesk).
Public method GetType Gets the Type of the current instance. (inherited from Object).
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Public method Static OnApplicationExit(object, EventArgs) Under some circumstances you can need to call this method if you get an exception after closing the application (inherited from ReadAutodesk).
Protected method ReadEntity(OdDbEntity, ReadEntityData) Reads an Autocad entity. (inherited from ReadAutodesk).
Internal protected (Protected Friend) method ResetProgressParallel(int) Resets the progress bar for a parallel loop. (inherited from WorkUnit).
Public method RotateEverythingAroundX(double) Rotates geometry around world X axis. If the file was created in a system that orients with Y Axis Up, the models would by default be brought into Eyeshot (a Z axis up system) with a flipped coordinate system. This method is designed to fix the problem. (inherited from ReadFileAsyncWithBlocks).
Public method SetView(Viewport) Sets the view read from the file on the given viewport. (inherited from ReadAutodesk).
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).
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 ReadFileAsync).
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).
Top
Events
 
Name Description
Public event ProgressChanged Occurs when the DoWork() is called synchronously and the progress has changed. (inherited from WorkUnit).
Top
Fields
 
Name Description
Public field Layers Gets or sets the list of layers resulting from file reading. (inherited from ReadFileAsyncWithBlocksAndLayers).
Internal protected (Protected Friend) field log (inherited from WorkUnit).
Protected field readFileCloseStream (inherited from ReadFileAsync).
Top

.NET Framework

Supported in: 4.8

In this article

Definition