Check a drawing against your project's own rule file for layers, styles, text heights, names and title-block fields, preview the safe fixes and apply them in one step. For CAD managers and anyone issuing drawings to an office standard.
Before you start
- Stratal Draft or above (2D drafting).
- A rule file (
.json) for your project. Stratal ships no national or office standards: the rules are yours. A standards drawing (.stcad) whose layers, linetypes, text styles and dimension styles are the reference is optional. - The Drawing Checker plugin, sold separately, brings its own rule sets and batch checking.
Steps: choose the standard
- Click Review > Compare and check > Standard… (from the standards split button), or type
STANDARDS. - Choose the rule file. The command line describes it, for example
"Acme drawings" revision B: 12 standard layer(s), 3 text style(s), 2 dimension style(s), 4 required propert(ies). - The drawing remembers the file (relative to the drawing when it can be). To forget it, run
STANDARDSand choose Remove atRule file (.json) [Remove] <keep>.
Steps: check and fix
- Click Review > Compare and check > CHECKSTANDARDS (or type
CHECKSTANDARDS; the alias isCHECKSTD). - The command line says
Checked against <standard>:with a summary and lists the issues, each with its rule and either its fix or "(report only)". - At
Issues [Preview/Fix/List/Report/Exit] <Exit>:- Preview selects the objects with issues and says what the fixes would change. It is worked out on a copy.
- Fix applies every fix that is safe to do automatically, in one undo step, and checks again.
- List shows every issue (only the first 30 are shown at first).
- Report writes the issues to a
.csvfile.
Steps: live checking
- With a rule file chosen, type
STANDARDSLIVE(also in the standards split button). - Choose ON. After each change the drawing is checked against its standard and new issues are reported on the command line. Run it again and choose OFf to stop.
What is checked
| Rule area | What is reported |
|---|---|
| Layers | Layers that are not the standard's, names that do not match its patterns, layer properties that differ from the standard's. |
| Objects | Objects with their own colour, linetype, lineweight or transparency where ByLayer is required; objects on layer 0. |
| Text | Text styles that are not the standard's or differ from it; text heights not in the allowed list; text, symbols and dimension styles lower than the minimum height. |
| Dimensions | Dimension styles that are not the standard's or differ; dimensions whose value is replaced by text. |
| Names | Block, layout, text style and dimension style names that break the patterns. |
| Drawing properties | Required title-block fields that are missing or do not match their pattern. |
| Sheets | Layouts with viewports but no title block on the sheet. |
| Requirements | Discipline objects that miss a required property, classification, connection, system or containment (reported as object-requirement, report only). |
The rule file
A rule file is JSON with "format": "stratal-standards" and "version": 1. Every section is optional:
{ "format": "stratal-standards", "version": 1, "name": "Acme drawings", "revision": "B",
"standardsDrawing": "acme.stcad",
"layers": { "only": true, "patterns": ["A-*", "S-*"], "matchProperties": true,
"map": {"WALL": "A-WALL"},
"definitions": [{"name": "A-WALL", "colour": "#FF0000", "linetype": "Continuous",
"lineweight": 0.5, "plot": true}] },
"objects": { "byLayer": true, "notOnLayer0": true },
"text": { "onlyStandardStyles": true, "map": {"ROMANS": "Standard"}, "heights": [2.5, 3.5, 5, 7],
"minHeight": 2.5 },
"dimensions": { "onlyStandardStyles": true, "map": {"OLD": "ISO-25"}, "noOverriddenValues": true },
"names": { "blocks": ["*"], "layouts": ["Sheet *"] },
"properties": { "required": {"DrawingNumber": "^[A-Z]-[0-9]{3}$", "DrawnBy": ""} },
"sheets": { "titleBlock": true } }
standardsDrawingis relative to the rule file. Definitions in the file win over the standards drawing.mapentries are fixes: objects onWALLmove toA-WALLandWALLis deleted. Objects on layer 0 are only fixed when the map has an entry for"0".- Name patterns are wildcards:
*any run of characters,?one character,#one digit; case is ignored. - Property patterns are regular expressions over the whole value; an empty pattern means "not empty".
- Colours are
"#RRGGBB"; lineweights are in millimetres. - A
"requirements"list holds rules for discipline objects: each names the objects it applies to (a class, which includes its subclasses, or a wildcard such asutil.*, with optional conditions on their properties) and what they must have: a property given, absent, matching a pattern, in a list or between a minimum and a maximum in a unit; a classification code; a port with a connection; assignment to a system of a kind (drainage.*); or containment in an object of a class.
Tips and common mistakes
- Issues without a safe fix (a name to choose, a missing drawing number) are reported only.
- Objects on locked layers are never changed by Fix.
- Keep the rule file next to the project's drawings, so the relative path still works when the folder moves.
Troubleshooting
| Message or symptom | What it means and what to do |
|---|---|
| "This drawing has no rule file: choose one with STANDARDS." | Choose the rule file first. |
| "Not used: …" | The rule file could not be read. The reason names the line of a JSON error, an unknown format or version, a bad value or an unreadable standards drawing. |
| "No issue has an automatic fix." | Every issue is report only. Fix them by hand. |
| "The fixes cannot be applied: …" / "The fixes were not applied: …" | Something in the drawing blocks the fix (for example a locked layer). The reason follows. |
| "A report is never written over a drawing; give a .csv file." | Choose a .csv file name. |
Related
Related
- Backing up and recovering drawings
- Checking, purging and recovering a drawing
- Comparing drawing revisions
- Finding repeated geometry
- Markup comments and marked-up PDFs
- Project support packages and material libraries
Still stuck? Open a support ticket or use Help, then Contact support in Stratal CAD.