Table of Contents

Class CadViolation

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

One place a drawing breaks a rule of a standard: which rule, which objects, where, and the number found against the number allowed.

public sealed class CadViolation
Inheritance
CadViolation
Inherited Members

Properties

Allowed

Gets what the standard allows, as a sentence: 2.5, 3.5, 5, 7 mm, at least 0.5 mm.

Box

Gets the place, (min X, min Y, max X, max Y), in the coordinates of Space: the box of the object, or of the gap or the overlap for a rule about two. Null for a record of a table, which has no place.

Handle

Gets the handle of the object (or, for a rule about a layer or a style, of its record) that breaks the rule.

Limit

Gets the number allowed against Value: the nearest listed height, the least gap, the tolerance of a chain; NaN for a name.

Measured

Gets what was found, as a sentence: 3.2 mm, WALL-OLD, color 1.

Other

Gets the handle of the second object where the rule is about two (the line a word is too near, the dimension a chain follows); null where it is about one.

Rule

Gets the id of the rule broken (RuleIds).

Space

Gets the name of the space the object is in: Model, a layout, or an empty text for a record of a table.

Through

Gets the handle of the viewport through which a model-space object was measured on paper, where it was; null where the object was measured in its own space.

Value

Gets the number found where the rule is about a number (millimetres on paper; the offset of a dimension line from its chain), NaN where it is about a name.