Table of Contents

CadRemoteRuleScore

from OpenCAD2D.Remote import CadRemoteRuleScore

class CadRemoteRuleScore(System.Object) ยท CadRemoteRuleScore in the .NET reference

How one rule of a standard fared in the app's check (CadRemoteDocument.CheckStandard).

Properties and fields

Offenders

.NET

@property
def Offenders(self) -> int

Gets how many of them offend.

Rule

.NET

@property
def Rule(self) -> str

Gets the id of the rule: text-height, gap-word-line, layer-name and the others.

Score

.NET

@property
def Score(self) -> float

Gets the score, from 0 (every subject offends) to 1 (none does, or there was nothing to check).

Subjects

.NET

@property
def Subjects(self) -> int

Gets how many things the rule looked at.

Weight

.NET

@property
def Weight(self) -> float

Gets the weight of the rule in the total score.