Table of Contents

Method Open

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

Open(string)

Opens a DXF file from a path.

public static DxfDatabase Open(string path)

Parameters

path string

The path of the file.

Returns

DxfDatabase

The drawing, every byte of the file kept.

Exceptions

ArgumentNullException

Thrown when the path is null.

FormatException

Thrown when the file is not a DXF, is binary, or is cut short, the message naming the line; or when its header names a code page that does not read each byte of ASCII as itself; as DxfReader refuses it.

IOException

Thrown when the file cannot be read.

Open(Stream)

Opens a DXF file from a stream, from where the stream stands to its end.

public static DxfDatabase Open(Stream stream)

Parameters

stream Stream

The stream; it is read to its end and left open.

Returns

DxfDatabase

The drawing, every byte of it kept.

Exceptions

ArgumentNullException

Thrown when the stream is null.

FormatException

Thrown when the file is not a DXF, is binary, or is cut short, as Open(string) refuses it.