{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/drill-bit-depth-stop/schema.json",
 "title": "Drill depth stop — parameters",
 "description": "Collars that stop a drill bit at a set depth, for any bit from 2 to 13 mm: bored to your bit, with a nut and a bolt or a split that grips, and the size on the label. 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-bit-depth-stop",
 "x-toolVersion": "1.1.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "stop",
   "title": "Bit and stop"
  },
  {
   "id": "screw",
   "title": "Grip"
  },
  {
   "id": "label",
   "title": "Label"
  },
  {
   "id": "look",
   "title": "Texture & colours"
  },
  {
   "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": "shelf-pin-depth-stop-5mm",
    "title": "Shelf-pin depth stop, 5 mm bit",
    "description": "A collar for a 5 mm shelf-pin bit, stopped 12 mm deep, with a nut and a bolt that hold it on the bit.",
    "values": {
     "set": "single",
     "bitDiameter": 5,
     "clearance": 0.2,
     "depth": 12,
     "collarOD": 22,
     "collarLength": 10,
     "wall": 4,
     "grip": "screw",
     "screwSize": "m3",
     "fitCoupon": true,
     "text": "",
     "font": "lilita",
     "letterHeight": 5,
     "letterSpacing": 0.02,
     "letterStyle": "engraved",
     "letterDepth": 1,
     "colorMode": "multi",
     "collarColor": "#e85d22",
     "letterColor": "#f4efe6",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 100
    }
   },
   {
    "id": "split-depth-stop-collar",
    "title": "Split depth-stop collar (friction)",
    "description": "No hardware: push it on the bit, slide it to the depth, pull it off. For a bit used now and then.",
    "values": {
     "set": "single",
     "bitDiameter": 8,
     "clearance": 0.2,
     "depth": 20,
     "collarOD": 23,
     "collarLength": 10,
     "wall": 4,
     "grip": "friction",
     "screwSize": "m3",
     "fitCoupon": true,
     "text": "",
     "font": "lilita",
     "letterHeight": 5,
     "letterSpacing": 0.02,
     "letterStyle": "engraved",
     "letterDepth": 1,
     "colorMode": "multi",
     "collarColor": "#2563eb",
     "letterColor": "#f2c14e",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 100
    }
   },
   {
    "id": "small-bit-depth-stop-3mm",
    "title": "Small depth stop for a 3 mm bit",
    "description": "A short collar for a 3 mm bit stopped 6 mm deep, for pilot holes and hinges.",
    "values": {
     "set": "single",
     "bitDiameter": 3,
     "clearance": 0.2,
     "depth": 6,
     "collarOD": 18,
     "collarLength": 10,
     "wall": 4,
     "grip": "screw",
     "screwSize": "m3",
     "fitCoupon": true,
     "text": "3x6",
     "font": "lilita",
     "letterHeight": 5,
     "letterSpacing": 0.02,
     "letterStyle": "engraved",
     "letterDepth": 1,
     "colorMode": "multi",
     "collarColor": "#15803d",
     "letterColor": "#ffffff",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 100
    }
   },
   {
    "id": "dowel-bit-depth-stops",
    "title": "Dowel bit depth stops: 6, 8 and 10 mm",
    "description": "Three collars for dowel bits, each stopped 30 mm deep and labelled for its bit.",
    "values": {
     "set": "dowel",
     "bitDiameter": 6,
     "clearance": 0.2,
     "depth": 12,
     "collarOD": 27,
     "collarLength": 10,
     "wall": 4,
     "grip": "screw",
     "screwSize": "m3",
     "fitCoupon": true,
     "text": "",
     "font": "lilita",
     "letterHeight": 5,
     "letterSpacing": 0.02,
     "letterStyle": "engraved",
     "letterDepth": 1,
     "colorMode": "multi",
     "collarColor": "#d97706",
     "letterColor": "#fbbf24",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 100
    }
   },
   {
    "id": "metric-bit-depth-stops-4-to-10",
    "title": "Metric bit depth stops, 4 to 10 mm",
    "description": "Seven split collars for bits from 4 to 10 mm, each stopped 15 mm deep. Move them by hand.",
    "values": {
     "set": "metric",
     "bitDiameter": 6,
     "clearance": 0.2,
     "depth": 12,
     "collarOD": 27,
     "collarLength": 8,
     "wall": 4,
     "grip": "friction",
     "screwSize": "m3",
     "fitCoupon": true,
     "text": "",
     "font": "lilita",
     "letterHeight": 5,
     "letterSpacing": 0.02,
     "letterStyle": "engraved",
     "letterDepth": 1,
     "colorMode": "multi",
     "collarColor": "#0f766e",
     "letterColor": "#bae6fd",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 100
    }
   },
   {
    "id": "wall-plug-depth-stops",
    "title": "Wall-plug depth stops: 6 and 8 mm",
    "description": "A 6 mm collar stopped at 40 mm and an 8 mm one at 50 mm: the two wall plugs every box of screws holds.",
    "values": {
     "set": "plug",
     "bitDiameter": 6,
     "clearance": 0.2,
     "depth": 12,
     "collarOD": 23,
     "collarLength": 10,
     "wall": 4,
     "grip": "screw",
     "screwSize": "m3",
     "fitCoupon": true,
     "text": "",
     "font": "lilita",
     "letterHeight": 5,
     "letterSpacing": 0.02,
     "letterStyle": "engraved",
     "letterDepth": 1,
     "colorMode": "multi",
     "collarColor": "#b91c1c",
     "letterColor": "#fde68a",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 100
    }
   },
   {
    "id": "inch-bit-depth-stops",
    "title": "Inch bit depth stops, 1/8 to 3/8",
    "description": "Five taller collars for inch bits: the bit in fractions of an inch over the depth.",
    "values": {
     "set": "imperial",
     "bitDiameter": 6,
     "clearance": 0.2,
     "depth": 12,
     "collarOD": 26,
     "collarLength": 16,
     "wall": 4,
     "grip": "screw",
     "screwSize": "m3",
     "fitCoupon": true,
     "text": "",
     "font": "lilita",
     "letterHeight": 5,
     "letterSpacing": 0.02,
     "letterStyle": "engraved",
     "letterDepth": 1,
     "colorMode": "multi",
     "collarColor": "#7c3aed",
     "letterColor": "#fed7aa",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 100
    }
   }
  ]
 },
 "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": {
  "set": {
   "type": "string",
   "enum": [
    "single",
    "dowel",
    "metric",
    "plug",
    "imperial"
   ],
   "x-enumTitles": {
    "single": "One collar",
    "dowel": "Dowel bits: 6, 8 and 10 mm",
    "metric": "Metric bits: 4 to 10 mm",
    "plug": "Wall plugs: 6 mm at 40, 8 mm at 50",
    "imperial": "Inch bits: 1/8 to 3/8"
   },
   "title": "Collars",
   "description": "One collar for the bit you name, or a set: every collar is bored and labelled for its bit.",
   "x-group": "stop",
   "x-agentSafe": true,
   "x-label-lv": "Uzgriežņi",
   "default": "single",
   "x-resetOnPreset": true
  },
  "bitDiameter": {
   "type": "number",
   "minimum": 2,
   "maximum": 13,
   "x-step": 0.05,
   "title": "Bit diameter",
   "description": "Measure the bit with a caliper, behind the flutes. 2 to 13 mm.",
   "x-group": "stop",
   "x-unit": "mm",
   "x-visibleIf": {
    "set": "single"
   },
   "x-agentSafe": true,
   "x-label-lv": "Urbjakmens diametrs",
   "default": 6,
   "x-resetOnPreset": true
  },
  "clearance": {
   "type": "number",
   "minimum": 0.05,
   "maximum": 0.4,
   "x-step": 0.05,
   "title": "Bore clearance",
   "description": "Added to the bit for the bore. Print the fit coupon and take the tightest bore the bit slides into.",
   "x-group": "stop",
   "x-unit": "mm",
   "x-role": "core.clearance",
   "x-agentSafe": true,
   "x-label-lv": "Urbuma sprauga",
   "default": 0.2,
   "x-resetOnPreset": true
  },
  "depth": {
   "type": "number",
   "minimum": 3,
   "maximum": 80,
   "multipleOf": 1,
   "title": "Hole depth",
   "description": "Goes on the label: slide the collar this far from the tip of the bit.",
   "x-group": "stop",
   "x-unit": "mm",
   "x-visibleIf": {
    "set": "single"
   },
   "x-agentSafe": true,
   "x-label-lv": "Urbuma dziļums",
   "default": 12,
   "x-resetOnPreset": true
  },
  "collarOD": {
   "type": "number",
   "minimum": 12,
   "maximum": 34,
   "multipleOf": 1,
   "title": "Collar diameter",
   "description": "Outside. It grows on its own when the bit, the wall, the screw and the label need more.",
   "x-group": "stop",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Uzgriežņa diametrs",
   "default": 22,
   "x-resetOnPreset": true
  },
  "collarLength": {
   "type": "number",
   "minimum": 6,
   "maximum": 25,
   "multipleOf": 1,
   "title": "Collar length",
   "description": "Along the bit. A screw grip needs 10 mm for its nut.",
   "x-group": "stop",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Uzgriežņa garums",
   "default": 10,
   "x-resetOnPreset": true
  },
  "wall": {
   "type": "number",
   "minimum": 2,
   "maximum": 6,
   "x-step": 0.2,
   "title": "Wall",
   "description": "Between the bore and the outside. A screw grip is made thicker where the nut sits.",
   "x-group": "stop",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-agentSafe": true,
   "x-label-lv": "Siena",
   "default": 4,
   "x-resetOnPreset": true
  },
  "grip": {
   "type": "string",
   "enum": [
    "friction",
    "screw"
   ],
   "x-enumTitles": {
    "friction": "Friction: a split collar pushed on by hand",
    "screw": "Screw: a nut in the wall and a bolt against the bit"
   },
   "title": "Grip",
   "description": "Friction holds by the split collar pinching the bit: quick to move, fine for light work. The screw holds hardest: put the collar where it belongs and tighten.",
   "x-group": "screw",
   "x-agentSafe": true,
   "x-label-lv": "Tvēriens",
   "default": "screw",
   "x-resetOnPreset": true
  },
  "screwSize": {
   "type": "string",
   "enum": [
    "m3",
    "m4"
   ],
   "x-enumTitles": {
    "m3": "M3: a 5.5 mm nut",
    "m4": "M4: a 7 mm nut"
   },
   "title": "Screw",
   "description": "The pocket is for a standard nut; the bolt goes through the wall from outside.",
   "x-group": "screw",
   "x-visibleIf": {
    "grip": "screw"
   },
   "x-agentSafe": true,
   "x-label-lv": "Skrūve",
   "default": "m3",
   "x-resetOnPreset": true
  },
  "fitCoupon": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Fit coupon",
   "description": "A strip with three bores: the bit plus 0.1, 0.2 and 0.3 mm. The tightest the bit slides into is the clearance to set.",
   "x-group": "screw",
   "x-agentSafe": true,
   "x-label-lv": "Pieliecības paraugiņš",
   "default": 1,
   "x-resetOnPreset": true
  },
  "text": {
   "type": "string",
   "maxLength": 10,
   "title": "Label",
   "description": "Empty: the bit and the depth, as in 6x12. Your own text: up to 10 characters; a | starts a second line. A set labels every collar for its bit.",
   "x-group": "label",
   "x-visibleIf": {
    "set": "single"
   },
   "x-agentSafe": true,
   "x-label-lv": "Etiķete",
   "default": "",
   "x-resetOnPreset": true
  },
  "font": {
   "type": "string",
   "enum": [
    "lilita",
    "pacifico",
    "varela",
    "barlow"
   ],
   "x-enumTitles": {
    "lilita": "Bold rounded (Lilita One)",
    "pacifico": "Script, joined letters (Pacifico)",
    "varela": "Clean rounded (Varela Round)",
    "barlow": "Narrow, for long text (Barlow Condensed)"
   },
   "title": "Letter style",
   "description": "Bold rounded holds its strokes at the small size of a label; the narrow and the script styles need 6 mm letters.",
   "x-group": "label",
   "x-agentSafe": true,
   "x-label-lv": "Burtu stils",
   "default": "lilita",
   "x-resetOnPreset": true
  },
  "letterHeight": {
   "type": "number",
   "minimum": 2.5,
   "maximum": 8,
   "x-step": 0.5,
   "title": "Letter height",
   "description": "Height of a capital letter. The letters shrink on their own when they do not fit the flat.",
   "x-group": "label",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Burtu augstums",
   "default": 5,
   "x-resetOnPreset": true
  },
  "letterSpacing": {
   "type": "number",
   "minimum": -0.05,
   "maximum": 0.3,
   "x-step": 0.01,
   "title": "Letter spacing",
   "description": "As a share of the letter height.",
   "x-group": "label",
   "x-unit": "ratio",
   "x-agentSafe": true,
   "x-label-lv": "Atstarpe starp burtiem",
   "default": 0.02,
   "x-resetOnPreset": true
  },
  "letterStyle": {
   "type": "string",
   "enum": [
    "raised",
    "engraved"
   ],
   "x-enumTitles": {
    "raised": "Raised letters",
    "engraved": "Engraved letters"
   },
   "title": "Letters",
   "description": "The collar prints upright, so the label is cut into its flat; in two colours the second colour is inlaid flush. Raised letters stand on the flat.",
   "x-group": "label",
   "x-agentSafe": true,
   "x-label-lv": "Burti",
   "default": "engraved",
   "x-resetOnPreset": true
  },
  "letterDepth": {
   "type": "number",
   "minimum": 0.6,
   "maximum": 1.6,
   "x-step": 0.2,
   "title": "Letter depth",
   "description": "How deep the letters are cut, or how far they stand out.",
   "x-group": "label",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Burtu dziļums",
   "default": 1,
   "x-resetOnPreset": true
  },
  "gripTexture": {
   "type": "string",
   "enum": [
    "none",
    "knurl",
    "ribs",
    "diamond",
    "hex",
    "waves",
    "hammered",
    "basketweave",
    "folk"
   ],
   "x-enumTitles": {
    "none": "Smooth (none)",
    "knurl": "Diamond knurl",
    "ribs": "Vertical ribs",
    "diamond": "Diamond",
    "hex": "Hexagon",
    "waves": "Waves",
    "hammered": "Hammered",
    "basketweave": "Basketweave",
    "folk": "Folk diamond"
   },
   "title": "Outer grip texture",
   "description": "3D cylindrical grip relief carved around the outer collar wall (keeps the label flat, bore and screw pocket crisp; prints upright without supports).",
   "x-group": "look",
   "x-agentSafe": true,
   "x-label-lv": "Ārējā satvēriena tekstūra",
   "default": "none",
   "x-resetOnPreset": true
  },
  "textureDepth": {
   "type": "number",
   "minimum": 0.25,
   "maximum": 0.6,
   "x-step": 0.05,
   "title": "Texture depth",
   "description": "Carved depth into the outer collar surface (0.25–0.6 mm).",
   "x-group": "look",
   "x-unit": "mm",
   "x-visibleIf": {
    "gripTexture": {
     "ne": "none"
    }
   },
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Tekstūras dziļums",
   "default": 0.4,
   "x-resetOnPreset": true
  },
  "textureScale": {
   "type": "number",
   "minimum": 3,
   "maximum": 10,
   "x-step": 0.5,
   "title": "Texture scale",
   "description": "Pattern repeat pitch in millimetres.",
   "x-group": "look",
   "x-unit": "mm",
   "x-visibleIf": {
    "gripTexture": {
     "ne": "none"
    }
   },
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Tekstūras mērogs",
   "default": 5,
   "x-resetOnPreset": true
  },
  "colorMode": {
   "type": "string",
   "enum": [
    "single",
    "multi"
   ],
   "x-enumTitles": {
    "single": "One colour",
    "multi": "Two colours: label and collar"
   },
   "title": "Colours",
   "description": "Two colours gives two bodies in the 3MF, for a multi-material printer. With one extruder take engraved letters and ignore the second colour.",
   "x-group": "look",
   "x-agentSafe": true,
   "x-label-lv": "Krāsas",
   "default": "multi",
   "x-resetOnPreset": true
  },
  "collarColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Collar colour",
   "description": "The collars and the fit coupon.",
   "x-group": "look",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Uzgriežņa krāsa",
   "default": "#0f766e",
   "x-resetOnPreset": true
  },
  "letterColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Label colour",
   "description": "The label.",
   "x-group": "look",
   "x-visibleIf": {
    "colorMode": "multi"
   },
   "x-agentSafe": true,
   "x-label-lv": "Etiķetes krāsa",
   "default": "#fef3c7",
   "x-resetOnPreset": true
  },
  "material": {
   "type": "string",
   "enum": [
    "petg",
    "pla",
    "asa"
   ],
   "x-enumTitles": {
    "petg": "PETG",
    "pla": "PLA",
    "asa": "ASA"
   },
   "title": "Filament",
   "description": "PETG takes the pressure of the bolt without creeping loose; PLA is fine for a collar used once. Print the collar upright, as it lies here, with four walls.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Filaments",
   "default": "petg",
   "x-resetOnPreset": true
  },
  "layerHeight": {
   "type": "number",
   "minimum": 0.16,
   "maximum": 0.3,
   "x-step": 0.02,
   "title": "Layer height",
   "description": "Only for the layer number of the filament change, with raised letters in one colour.",
   "x-group": "print",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Slāņa augstums",
   "default": 0.2,
   "x-resetOnPreset": true
  },
  "wallCount": {
   "type": "integer",
   "minimum": 3,
   "maximum": 8,
   "multipleOf": 1,
   "title": "Perimeter walls",
   "description": "Four lines: the bore has to be round and solid to take the bit.",
   "x-group": "print",
   "x-unit": "count",
   "x-role": "print.wallCount",
   "x-agentSafe": true,
   "x-label-lv": "Sienu skaits",
   "default": 4,
   "x-resetOnPreset": true
  },
  "infill": {
   "type": "integer",
   "minimum": 20,
   "maximum": 100,
   "multipleOf": 5,
   "title": "Infill",
   "description": "100 %: a split collar has to spring back, and the nut pocket needs solid ground.",
   "x-group": "print",
   "x-unit": "pct",
   "x-role": "print.infill",
   "x-agentSafe": true,
   "x-label-lv": "Aizpildījums",
   "default": 100,
   "x-resetOnPreset": true
  }
 },
 "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",
   "relation": "material",
   "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",
   "relation": "material",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  }
 ]
}