Table of Contents

Method Validate

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Validate()

Checks the groups of the lines as AutoCAD checks them when the filter is applied: each Begin has its End, nothing is empty, XOR has two operands and NOT one.

public string Validate()

Returns

string

Null where the lines are well formed, else AutoCAD's words: "Invalid Filter list - Begin/end clause mismatch.", "Premature end.", "Empty clause/bad nesting.", "Wrong number of XOR/NOT operands.", "Maximum nesting exceeded.".

Validate(IReadOnlyList<CadFilterLine>)

Checks the groups of lines as Validate() does, for lines not yet given to the filter.

public static string Validate(IReadOnlyList<CadFilterLine> lines)

Parameters

lines IReadOnlyList<CadFilterLine>

The lines.

Returns

string

Null where they are well formed, else AutoCAD's words.

Exceptions

ArgumentNullException

Thrown when the lines are null.