Click or drag to resize

DwgDecoderDistill Method

Scans through a document, extracts the geometry with each page, and optionally reduces it to primitives.

Namespace:  Atalasoft.Imaging.Codec.CadCam
Assembly:  Atalasoft.dotImage.Dwg (in Atalasoft.dotImage.Dwg.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public void Distill(
	Stream stream,
	GeometryHandler userHandler,
	ProgressEventHandler progress
)

Parameters

stream
Type: System.IOStream
A stream containing a DWG file
userHandler
Type: Atalasoft.Imaging.Codec.CadCamGeometryHandler
A GeometryHandler object for responding to geometry in the file.
progress
Type: Atalasoft.ImagingProgressEventHandler
A callback for progress events
Examples
Calling Distill (C#)
using (FileStream stm = new FileStream(pathToDWG, FileMode.Open) {
    DwgDecoder decoder = new DwgDecoder();
    GeometryHandler handler = new MyGeometryHandler();
    handler.Distill(stm, handler, null);
}
See Also