Table of Contents

Method CheckStandard

Namespace
OpenCAD2D.Remote
Assembly
OpenCAD2D.Remote.dll

CheckStandard(string, double, double)

Checks the drawing against a drawing standard and scores it, as the app does: a score for each rule the standard runs, a total and the violations with their places. The standard is the text of a file of the schema docs/schemas/opencad2d-standard-v1.schema.json.

public CadRemoteStandardResult CheckStandard(string standard, double modelScale, double tolerance)

Parameters

standard string

The JSON text of the standard.

modelScale double

The paper length in millimetres of one unit of model space where model space is checked on its own (0.01 for 1:100 in millimetres); 0 for none.

tolerance double

The tolerance of the comparisons in millimetres on paper; 0.001 is the library's.

Returns

CadRemoteStandardResult

The scores and the violations.

Exceptions

ArgumentNullException

Thrown when the standard is null.

CadRemoteException

Thrown when the drawing is closed, or the standard is not one the app reads.