Method CheckStandard
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
standardstringThe JSON text of the standard.
modelScaledoubleThe 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.
tolerancedoubleThe 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.