RapidDraft DFM Rulebook¶
Superseded for active bundle browsing: Use the DFM Rules Handbook for the active 195-rule runtime bundle, promoted book packs, per-rule pages, and traceability views.
Looking for the new book-grounded rules? Start with DFM Baseline Codex, which contains
DBC-001throughDBC-012.Source:
Architechture & Research/DFM Research/Standards & Rules/RapidDraft DFM Rulebook.docxStatus: Reference — summary document; full artifacts linked below Note: The docx contained only an executive summary. The full rulebook, rules JSON, rules CSV, and diagrams exist as separate linked artifacts (see below).
Overview¶
The RapidDraft DFM Rulebook is an exportable, machine-checkable rule library containing 145 rules across seven categories covering the full surface of manufacturing DFM checking.
Rule Categories¶
| Category | Description |
|---|---|
| Drawing / Spec | Drawing completeness and standards compliance checks |
| CNC | CNC machining manufacturability rules (pocket depth, corner radii, hole tolerances, tool access) |
| Sheet Metal | Sheet metal fabrication rules (bend radii, flange lengths, cutouts, hole-to-edge distances) |
| Weldments | Welded joint design rules (weld access, joint type appropriateness, distortion risk) |
| Assembly / Fixtures | Assembly and fixturing feasibility rules |
| Plastics | Injection moulding and plastic part design rules |
| Industry Overlays | Sector-specific additions (medical, aerospace, food-contact, pressure vessels) |
Total: 145 rules with deterministic check logic and standards citations.
Standards Basis¶
Rules are anchored on:
ISO GPS / Geometric Standards: - ISO 8015:2011 — Geometrical product specifications (GPS) — Fundamentals - ISO 2768 — General tolerances for dimensions and angular tolerances - ISO 1101 — Geometric tolerances - ISO 965 / ISO 724 — Metric thread tolerances
Weld Standards: - ISO 5817 — Welding — Fusion-welded joints in steel — Quality levels - EN ISO 9692 — Welding — Joint preparation types
EU Legal Baselines: - Machinery Regulation (EU) 2023/1230 — applies from 20 January 2027 - Pressure Equipment Directive PED 2014/68/EU - Medical Device Regulation MDR 2017/745
DIN/EN references: Where available for process-specific thresholds
Thresholds: Sourced from standards or industry guides (e.g., CNC hole depth guidance from machining handbooks) where available. Otherwise marked configurable/unspecified to reflect real supplier and company capability differences.
Rule Schema (JSON)¶
Each rule in the library follows this schema:
{
"rule_id": "CNC-005",
"pack": "cnc_milling",
"applies_to": "pocket_features",
"inputs": ["pocket_depth", "pocket_corner_radius"],
"check_logic": {
"type": "threshold",
"expression": "pocket_depth / pocket_corner_radius",
"operator": ">",
"threshold": 8.0
},
"pass_fail_criteria": "Depth-to-corner-radius ratio must not exceed 8:1",
"fix_template": "Increase corner radius to at least {pocket_depth}/8 = {min_radius}mm, or reduce pocket depth",
"severity": "warning",
"refs": [
{
"title": "CNC machining design guide — pocket depth guidelines",
"url": "https://www.hubs.com/guides/cnc-machining/"
}
],
"automation_inputs": ["pocket_depth_mm", "corner_radius_mm"]
}
Linked Artifacts¶
The full rulebook content lives in these separately created artifacts (not in the docx):
| Artifact | Description |
|---|---|
| Rapiddraft_DFM_Rulebook | Full rulebook document with all 145 rules described in narrative form |
| Rapiddraft_DFM_Rules | Machine-readable JSON rules library |
| Rapiddraft_DFM_Rules_CSV | CSV export of all rules for spreadsheet review |
| Rapiddraft_DFM_Diagrams | Visual diagrams of rule categories and relationships |
Action: Locate these artifacts in the DFM Benchmarking codebase at
D:\02_Code\21_RapidDraft_ProductversionFinal_DFMBenchmark\server\dfm\rule_library.jsonand copy them into the_sources/folder of this wiki section.
Runtime Integration¶
The rulebook is loaded by server/dfm_bundle.py at startup. Rules are evaluated by registered evaluator functions in server/dfm_review_v2.py. The pipeline is explained in full in: