{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/drill-guide-jig/schema.json",
 "title": "Drill guide & 45°/90° jig — parameters",
 "description": "Design 3D-printable drilling jigs: 90°/45° multi-size drill blocks, pipe V-blocks, board-edge dowel jigs, 15° pocket-hole guides and 32 mm shelf-pin jigs. All lengths are millimetres. Unknown keys are rejected; out-of-range values are rejected by the URL and API and clamped when a project file is opened.",
 "x-tool": "drill-guide-jig",
 "x-toolVersion": "1.0.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "type",
   "title": "Jig style"
  },
  {
   "id": "bores",
   "title": "Drill bores & bushings"
  },
  {
   "id": "work",
   "title": "Workpiece & body"
  },
  {
   "id": "print",
   "title": "Printing"
  }
 ],
 "x-presets": {
  "note": "Choosing a preset resets every key marked x-resetOnPreset to its default and then applies the preset values.",
  "items": [
   {
    "id": "multi-90-45-metric",
    "title": "90° / 45° Metric Block (4–10 mm)",
    "description": "All-round 90° and 45° multi-size drill guide block with bottom pipe V-groove and sight-notches.",
    "values": {
     "jigStyle": "block-90-45",
     "minDrill": 4,
     "holeCount": 5,
     "blockHeight": 28,
     "vGroove": true,
     "bushingMode": "direct",
     "clearance": 0.25
    }
   },
   {
    "id": "multi-90-45-heavy",
    "title": "90° / 45° Heavy Block (5–12 mm)",
    "description": "Tall 34 mm heavy-duty 90°/45° guide block covering 5 mm to 12 mm bits for timber framing.",
    "values": {
     "jigStyle": "block-90-45",
     "minDrill": 5,
     "holeCount": 6,
     "blockHeight": 34,
     "vGroove": true,
     "bushingMode": "direct",
     "clearance": 0.25
    }
   },
   {
    "id": "bushing-block-90-45",
    "title": "Steel-Bushing 90°/45° (6–10 mm)",
    "description": "Precision 90°/45° drill block sized for press-fit hardened steel sleeves (+2 mm OD).",
    "values": {
     "jigStyle": "block-90-45",
     "minDrill": 6,
     "holeCount": 4,
     "blockHeight": 30,
     "vGroove": true,
     "bushingMode": "steel-bushing",
     "clearance": 0.15
    }
   },
   {
    "id": "pipe-v-block-25mm",
    "title": "Pipe & Dowel V-Block (Ø 24 mm)",
    "description": "Self-centering 90° V-block with clamping wings for drilling straight cross-holes in 24 mm tubes or dowels.",
    "values": {
     "jigStyle": "v-block-pipe",
     "pipeDiameter": 24,
     "drillDiameter": 6,
     "blockHeight": 32,
     "bushingMode": "direct",
     "clearance": 0.25
    }
   },
   {
    "id": "dowel-edge-18mm",
    "title": "18 mm Plywood Dowel Jig (Ø 8 mm)",
    "description": "Self-centering U-saddle dowel guide that drills dead-middle 8 mm holes into 18 mm board edges.",
    "values": {
     "jigStyle": "edge-dowel",
     "boardThickness": 18,
     "drillDiameter": 8,
     "blockHeight": 28,
     "bushingMode": "direct",
     "clearance": 0.2
    }
   },
   {
    "id": "dowel-edge-24mm",
    "title": "24 mm Timber Dowel Jig (Ø 10 mm)",
    "description": "Heavy-duty U-saddle centering guide for 10 mm wooden dowels on 24 mm solid timber.",
    "values": {
     "jigStyle": "edge-dowel",
     "boardThickness": 24,
     "drillDiameter": 10,
     "blockHeight": 32,
     "bushingMode": "direct",
     "clearance": 0.2
    }
   },
   {
    "id": "pocket-hole-15deg",
    "title": "15° Twin Pocket-Hole Jig (9.5 mm)",
    "description": "Compact 15-degree twin-bore pocket-hole guide with registration fence and chip ejection relief.",
    "values": {
     "jigStyle": "pocket-hole",
     "drillDiameter": 9.5,
     "holeSpacing": 26,
     "bushingMode": "direct",
     "clearance": 0.25
    }
   },
   {
    "id": "shelf-pin-32mm",
    "title": "32 mm Shelf-Pin Jig (Ø 5 mm)",
    "description": "European System 32 cabinet shelf-pin drilling template: 6 holes at 32 mm spacing, 37 mm edge setback.",
    "values": {
     "jigStyle": "shelf-pin",
     "drillDiameter": 5,
     "holeCount": 6,
     "holeSpacing": 32,
     "edgeSetback": 37,
     "bushingMode": "direct",
     "clearance": 0.2
    }
   }
  ]
 },
 "x-coreParams": {
  "exportFormat": {
   "type": "string",
   "title": "File format",
   "description": "3mf = 3MF (mm); stl = STL files in a zip (mm)",
   "x-group": "download",
   "x-role": "core.exportFormat",
   "x-unit": "none",
   "x-agentSafe": true,
   "enum": [
    "3mf",
    "stl"
   ],
   "default": "3mf"
  },
  "exportTol": {
   "type": "number",
   "title": "Mesh precision",
   "description": "Simplification tolerance in mm (0 = original mesh).",
   "x-group": "download",
   "x-role": "core.exportTolerance",
   "x-unit": "mm",
   "x-agentSafe": true,
   "enum": [
    0,
    0.01,
    0.02
   ],
   "default": 0.02
  },
  "units": {
   "type": "string",
   "title": "Units shown",
   "description": "Display only: mm or inches (1 in = 25.4 mm). Stored values, the API and exports are always mm.",
   "x-group": "view",
   "x-role": "core.displayUnits",
   "x-unit": "none",
   "x-agentSafe": true,
   "enum": [
    "mm",
    "in"
   ],
   "x-enumTitles": {
    "mm": "Millimetres",
    "in": "Inches"
   },
   "default": "mm"
  }
 },
 "type": "object",
 "properties": {
  "jigStyle": {
   "type": "string",
   "enum": [
    "block-90-45",
    "v-block-pipe",
    "edge-dowel",
    "pocket-hole",
    "shelf-pin"
   ],
   "x-enumTitles": {
    "block-90-45": "90° / 45° multi-size drill block",
    "v-block-pipe": "Pipe & dowel V-block",
    "edge-dowel": "Board-edge centering dowel jig",
    "pocket-hole": "15° twin pocket-hole jig",
    "shelf-pin": "32 mm cabinet shelf-pin jig"
   },
   "title": "Drilling jig type",
   "description": "Choose the drilling guide geometry; every variant prints flat without supports.",
   "x-group": "type",
   "x-agentSafe": true,
   "x-label-lv": "Šablona tips",
   "default": "block-90-45",
   "x-resetOnPreset": true
  },
  "drillDiameter": {
   "type": "number",
   "minimum": 3,
   "maximum": 14,
   "x-step": 0.5,
   "title": "Drill bit diameter",
   "description": "Nominal diameter of your drill bit (e.g. 5 mm shelf pin, 8 mm dowel, 9.5 mm pocket bit).",
   "x-group": "bores",
   "x-unit": "mm",
   "x-visibleIf": {
    "jigStyle": {
     "ne": "block-90-45"
    }
   },
   "x-agentSafe": true,
   "x-label-lv": "Urbja diametrs",
   "default": 8,
   "x-resetOnPreset": true
  },
  "minDrill": {
   "type": "integer",
   "minimum": 3,
   "maximum": 8,
   "multipleOf": 1,
   "title": "Smallest hole",
   "description": "Starting hole diameter in the progressive 90°/45° guide row.",
   "x-group": "bores",
   "x-unit": "mm",
   "x-visibleIf": {
    "jigStyle": "block-90-45"
   },
   "x-agentSafe": true,
   "x-label-lv": "Mazākais urbums",
   "default": 4,
   "x-resetOnPreset": true
  },
  "holeCount": {
   "type": "integer",
   "minimum": 3,
   "maximum": 7,
   "multipleOf": 1,
   "title": "Number of guide holes",
   "description": "Number of progressive diameters (90°/45° block) or evenly spaced holes (shelf-pin jig).",
   "x-group": "bores",
   "x-unit": "count",
   "x-visibleIf": {
    "jigStyle": [
     "block-90-45",
     "shelf-pin"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Urbumu skaits",
   "default": 5,
   "x-resetOnPreset": true
  },
  "bushingMode": {
   "type": "string",
   "enum": [
    "direct",
    "steel-bushing"
   ],
   "x-enumTitles": {
    "direct": "Direct plastic guide",
    "steel-bushing": "Press-fit steel bushing (+2 mm OD)"
   },
   "title": "Guide sleeve mode",
   "description": "Steel bushing mode enlarges each bore by 2 mm to accept standard hardened steel drill sleeves.",
   "x-group": "bores",
   "x-agentSafe": true,
   "x-label-lv": "Vadotnes tips",
   "default": "direct",
   "x-resetOnPreset": true
  },
  "clearance": {
   "type": "number",
   "minimum": 0.1,
   "maximum": 0.6,
   "x-step": 0.05,
   "title": "Bore fit clearance",
   "description": "Extra clearance added to each guide bore so the bit or steel bushing fits cleanly.",
   "x-group": "bores",
   "x-unit": "mm",
   "x-role": "core.clearance",
   "x-agentSafe": true,
   "x-label-lv": "Urbuma pielaide",
   "default": 0.25
  },
  "blockHeight": {
   "type": "number",
   "minimum": 18,
   "maximum": 44,
   "multipleOf": 2,
   "title": "Guide thickness / height",
   "description": "Taller guide blocks hold the drill bit straighter and reduce wander.",
   "x-group": "work",
   "x-unit": "mm",
   "x-visibleIf": {
    "jigStyle": [
     "block-90-45",
     "v-block-pipe",
     "edge-dowel"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Vadotnes augstums",
   "default": 28,
   "x-resetOnPreset": true
  },
  "vGroove": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Bottom V-groove (pipes & corners)",
   "description": "Carves a 90° V-channel into the underside so the block self-centers on round pipes and board corners.",
   "x-group": "work",
   "x-visibleIf": {
    "jigStyle": "block-90-45"
   },
   "x-agentSafe": true,
   "x-label-lv": "Apakšējā V-rieva (caurulēm/stūriem)",
   "default": 1,
   "x-resetOnPreset": true
  },
  "pipeDiameter": {
   "type": "number",
   "minimum": 10,
   "maximum": 50,
   "multipleOf": 2,
   "title": "Target pipe / dowel OD",
   "description": "Outer diameter of the round stock to center in the V-block.",
   "x-group": "work",
   "x-unit": "mm",
   "x-visibleIf": {
    "jigStyle": "v-block-pipe"
   },
   "x-agentSafe": true,
   "x-label-lv": "Caurules / apaļkoka Ø",
   "default": 24,
   "x-resetOnPreset": true
  },
  "boardThickness": {
   "type": "number",
   "minimum": 12,
   "maximum": 40,
   "multipleOf": 1,
   "title": "Board thickness",
   "description": "Exact thickness of the board; the U-saddle centers the dowel hole dead-middle.",
   "x-group": "work",
   "x-unit": "mm",
   "x-visibleIf": {
    "jigStyle": "edge-dowel"
   },
   "x-agentSafe": true,
   "x-label-lv": "Dēļa / saplākšņa biezums",
   "default": 18,
   "x-resetOnPreset": true
  },
  "holeSpacing": {
   "type": "number",
   "minimum": 16,
   "maximum": 50,
   "multipleOf": 1,
   "title": "Hole spacing (center-to-center)",
   "description": "32 mm is the European cabinet shelf-pin standard; 25 mm is standard for twin pocket holes.",
   "x-group": "work",
   "x-unit": "mm",
   "x-visibleIf": {
    "jigStyle": [
     "shelf-pin",
     "pocket-hole"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Attālums starp urbumiem",
   "default": 32,
   "x-resetOnPreset": true
  },
  "edgeSetback": {
   "type": "number",
   "minimum": 15,
   "maximum": 60,
   "multipleOf": 1,
   "title": "Setback from cabinet edge",
   "description": "37 mm is the standard cabinet front setback for System 32 shelf pins and hinges.",
   "x-group": "work",
   "x-unit": "mm",
   "x-visibleIf": {
    "jigStyle": "shelf-pin"
   },
   "x-agentSafe": true,
   "x-label-lv": "Atkāpe no malas",
   "default": 37,
   "x-resetOnPreset": true
  },
  "printMaterial": {
   "type": "string",
   "enum": [
    "petg",
    "asa",
    "abs",
    "pla"
   ],
   "x-enumTitles": {
    "petg": "PETG (recommended)",
    "asa": "ASA (heat resistant)",
    "abs": "ABS",
    "pla": "PLA"
   },
   "title": "Print material",
   "description": "PETG or ASA handles drill friction heat and clamp force better than PLA.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Drukas materiāls",
   "default": "petg"
  },
  "resolution": {
   "type": "integer",
   "minimum": 20,
   "maximum": 64,
   "multipleOf": 4,
   "title": "Bore resolution",
   "description": "Segments around cylindrical drill bores.",
   "x-group": "print",
   "x-unit": "count",
   "x-role": "core.resolution",
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Urbumu izšķirtspēja",
   "default": 36
  },
  "color": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Preview colour",
   "description": "Only changes the 3D preview.",
   "x-group": "print",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Priekšskata krāsa",
   "default": "#d97706"
  }
 },
 "additionalProperties": false,
 "recommended_materials": [
  {
   "id": "brad-point-drill-set",
   "title": "Metric Brad-Point Wood Drill Bit Set (3–10 mm, 8-piece)",
   "why": "Clean, splinter-free 45° and 90° dowel holes.",
   "url": "https://paramlet.com/go/brad-point-drill-set?src=agent",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  },
  {
   "id": "steel-drill-bushings",
   "title": "Stainless Steel Drill Bushings Set (8 Sizes, 3–10 mm)",
   "why": "Press-fit into printed drill jigs for long-term wear resistance.",
   "url": "https://paramlet.com/go/steel-drill-bushings?src=agent",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  },
  {
   "id": "deburring-tool-set",
   "title": "Precision Deburring Tool with 10 HSS Blades",
   "why": "Cleans brim edges and drill-hole chamfers in seconds.",
   "url": "https://paramlet.com/go/deburring-tool-set?src=agent",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  },
  {
   "id": "petg-filament-1kg",
   "title": "PETG Filament 1.75 mm (1 kg) — heat-resistant & durable",
   "why": "Stronger and more heat-resistant than PLA for molds, jigs and outdoor parts.",
   "url": "https://paramlet.com/go/petg-filament-1kg?src=agent",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  }
 ]
}