Table of Contents

Method Parse

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

Parse(string, DxfReadOptions)

Reads a DXF file from its text.

public static DxfDocument Parse(string text, DxfReadOptions options = null)

Parameters

text string

The text of the file, as ToString() gives it; lines may end in a line feed or in a carriage return and a line feed.

options DxfReadOptions

How to read it; null reads it with the defaults of DxfReadOptions.

Returns

DxfDocument

The entities of the file and what it says of itself.

Exceptions

ArgumentNullException

Thrown when the text is null.

FormatException

Thrown when the text is not a DXF, is binary, or is cut short; the message names the line.