Class CadStandardResult
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
What Check(CadDocument, CadStandard, double, Tolerance) found: a score for each rule the standard runs, the total, and every violation in an order that does not depend on how the drawing was walked (by rule, then handle, then the other handle, space, value and sentence).
public sealed class CadStandardResult
- Inheritance
-
CadStandardResult
- Inherited Members
Properties
- Boxes
Gets the places of the violations, four numbers each in the order of Violations (min X, min Y, max X, max Y); NaN for a violation with no place. The array is the result's own: read it, do not change it.
- Name
Gets the name of the standard that was checked.
- Total
Gets the total score, from 0 to 1: the sum of each rule's weight times its score over the sum of the weights of the rules run; 1 where no rule ran or every weight is nought.
- Violations
Gets the violations, sorted.
Methods
- ScoreOf(string)
Gets the score of a rule.