{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/sanding-block/schema.json",
 "title": "Sanding block — parameters",
 "description": "Sandpaper blocks to 3D print, sized to the paper you have: a quarter sheet or a strip from a roll, with a flat, convex or concave face and the grit on top. No screws. 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": "sanding-block",
 "x-toolVersion": "1.1.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "paper",
   "title": "Paper and size"
  },
  {
   "id": "face",
   "title": "Face"
  },
  {
   "id": "clamp",
   "title": "Clamp"
  },
  {
   "id": "text",
   "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": "quarter-sheet-sanding-block",
    "title": "Quarter-sheet sanding block",
    "description": "The classic hand block: a 115 × 140 mm piece of a quarter sheet wraps it and tucks under two wedge bars.",
    "values": {
     "sizing": "paper",
     "paperWidth": 115,
     "paperLength": 140,
     "faceWidth": 45,
     "blockHeight": 28,
     "face": "flat",
     "radius": 30,
     "grip": "flat",
     "domeRise": 5,
     "corner": 3,
     "clamp": "wedge",
     "text": "P120",
     "font": "lilita",
     "letterHeight": 12,
     "letterSpacing": 0.02,
     "letterStyle": "raised",
     "letterDepth": 1,
     "colorMode": "multi",
     "bodyColor": "#e85d22",
     "letterColor": "#f4efe6",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 40
    }
   },
   {
    "id": "narrow-edge-sanding-block",
    "title": "Narrow sanding block for edges",
    "description": "A 60 mm paper strip: a short block that gets into frames, rebates and tight corners.",
    "values": {
     "sizing": "paper",
     "paperWidth": 60,
     "paperLength": 140,
     "faceWidth": 45,
     "blockHeight": 28,
     "face": "flat",
     "radius": 30,
     "grip": "flat",
     "domeRise": 5,
     "corner": 3,
     "clamp": "wedge",
     "text": "P240",
     "font": "lilita",
     "letterHeight": 12,
     "letterSpacing": 0.02,
     "letterStyle": "raised",
     "letterDepth": 1,
     "colorMode": "multi",
     "bodyColor": "#2563eb",
     "letterColor": "#f2c14e",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 40
    }
   },
   {
    "id": "half-sheet-flat-sanding-block",
    "title": "Half-sheet block for flat surfaces",
    "description": "A 140 × 230 mm half sheet wraps a wide, tall block for table tops and doors.",
    "values": {
     "sizing": "paper",
     "paperWidth": 140,
     "paperLength": 230,
     "faceWidth": 45,
     "blockHeight": 40,
     "face": "flat",
     "radius": 30,
     "grip": "flat",
     "domeRise": 5,
     "corner": 3,
     "clamp": "wedge",
     "text": "P80",
     "font": "lilita",
     "letterHeight": 20,
     "letterSpacing": 0.02,
     "letterStyle": "raised",
     "letterDepth": 1,
     "colorMode": "multi",
     "bodyColor": "#15803d",
     "letterColor": "#ffffff",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 40
    }
   },
   {
    "id": "detail-sanding-stick",
    "title": "Detail sanding stick for 3D prints",
    "description": "A 25 × 70 mm strip in a small one-part stick with slits: for layer lines and supports.",
    "values": {
     "sizing": "custom",
     "paperWidth": 25,
     "paperLength": 70,
     "faceWidth": 22,
     "blockHeight": 16,
     "face": "flat",
     "radius": 30,
     "grip": "flat",
     "domeRise": 5,
     "corner": 2,
     "clamp": "slit",
     "text": "",
     "font": "lilita",
     "letterHeight": 12,
     "letterSpacing": 0.02,
     "letterStyle": "raised",
     "letterDepth": 1,
     "colorMode": "multi",
     "bodyColor": "#d97706",
     "letterColor": "#fbbf24",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 40
    }
   },
   {
    "id": "concave-sanding-block",
    "title": "Concave sanding block for round work",
    "description": "A hollow face of R30 between two strips of flat ground: turned legs, rails and dowels.",
    "values": {
     "sizing": "paper",
     "paperWidth": 115,
     "paperLength": 140,
     "faceWidth": 45,
     "blockHeight": 28,
     "face": "concave",
     "radius": 30,
     "grip": "flat",
     "domeRise": 5,
     "corner": 3,
     "clamp": "wedge",
     "text": "P120",
     "font": "lilita",
     "letterHeight": 12,
     "letterSpacing": 0.02,
     "letterStyle": "engraved",
     "letterDepth": 1,
     "colorMode": "multi",
     "bodyColor": "#0f766e",
     "letterColor": "#bae6fd",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 40
    }
   },
   {
    "id": "convex-sanding-block",
    "title": "Convex sanding block for inside curves",
    "description": "A round face of R40 that stands out of the block: inside curves, scoops and mouldings.",
    "values": {
     "sizing": "paper",
     "paperWidth": 115,
     "paperLength": 140,
     "faceWidth": 45,
     "blockHeight": 28,
     "face": "convex",
     "radius": 40,
     "grip": "flat",
     "domeRise": 5,
     "corner": 3,
     "clamp": "wedge",
     "text": "P120",
     "font": "lilita",
     "letterHeight": 12,
     "letterSpacing": 0.02,
     "letterStyle": "engraved",
     "letterDepth": 1,
     "colorMode": "multi",
     "bodyColor": "#b91c1c",
     "letterColor": "#fde68a",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 40
    }
   },
   {
    "id": "palm-sanding-block-with-round-top",
    "title": "Palm sanding block with a round top",
    "description": "A 93 × 140 mm strip on a taller block whose round top sits in the palm.",
    "values": {
     "sizing": "paper",
     "paperWidth": 93,
     "paperLength": 140,
     "faceWidth": 45,
     "blockHeight": 32,
     "face": "flat",
     "radius": 30,
     "grip": "dome",
     "domeRise": 5,
     "corner": 3,
     "clamp": "wedge",
     "text": "P120",
     "font": "lilita",
     "letterHeight": 12,
     "letterSpacing": 0.02,
     "letterStyle": "raised",
     "letterDepth": 1,
     "colorMode": "multi",
     "bodyColor": "#7c3aed",
     "letterColor": "#fed7aa",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 40
    }
   },
   {
    "id": "one-part-sanding-block-with-slits",
    "title": "One-part sanding block with slits",
    "description": "The paper wedges into slits by itself: one part, nothing to lose, for a toolbox or a workshop.",
    "values": {
     "sizing": "paper",
     "paperWidth": 115,
     "paperLength": 140,
     "faceWidth": 45,
     "blockHeight": 28,
     "face": "flat",
     "radius": 30,
     "grip": "flat",
     "domeRise": 5,
     "corner": 3,
     "clamp": "slit",
     "text": "P120",
     "font": "lilita",
     "letterHeight": 12,
     "letterSpacing": 0.02,
     "letterStyle": "raised",
     "letterDepth": 1,
     "colorMode": "multi",
     "bodyColor": "#0284c7",
     "letterColor": "#d9f99d",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 40
    }
   }
  ]
 },
 "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": {
  "sizing": {
   "type": "string",
   "enum": [
    "paper",
    "custom"
   ],
   "x-enumTitles": {
    "paper": "Sized to my paper",
    "custom": "I set the face width"
   },
   "title": "Sizing",
   "description": "Sized to my paper: the block is as wide as it takes for the paper to wrap the face, go up both sides and tuck into the clamps. I set the face width: the page gives the paper to cut.",
   "x-group": "paper",
   "x-agentSafe": true,
   "x-label-lv": "Izmērs",
   "default": "paper",
   "x-resetOnPreset": true
  },
  "paperWidth": {
   "type": "number",
   "minimum": 20,
   "maximum": 230,
   "multipleOf": 1,
   "title": "Paper width",
   "description": "The paper piece across the block. 115 mm is a quarter of a 230 × 280 mm sheet; the block comes out 2 mm shorter.",
   "x-group": "paper",
   "x-unit": "mm",
   "x-visibleIf": {
    "sizing": "paper"
   },
   "x-agentSafe": true,
   "x-label-lv": "Papīra platums",
   "default": 115,
   "x-resetOnPreset": true
  },
  "paperLength": {
   "type": "number",
   "minimum": 40,
   "maximum": 280,
   "multipleOf": 1,
   "title": "Paper length",
   "description": "The paper piece around the block. 140 mm wraps a 68 mm face on a 28 mm block and still tucks into the clamps.",
   "x-group": "paper",
   "x-unit": "mm",
   "x-visibleIf": {
    "sizing": "paper"
   },
   "x-agentSafe": true,
   "x-label-lv": "Papīra garums",
   "default": 140,
   "x-resetOnPreset": true
  },
  "faceWidth": {
   "type": "number",
   "minimum": 10,
   "maximum": 150,
   "multipleOf": 1,
   "title": "Face width",
   "description": "How wide the sanding face is. The page gives the paper to cut.",
   "x-group": "paper",
   "x-unit": "mm",
   "x-visibleIf": {
    "sizing": "custom"
   },
   "x-agentSafe": true,
   "x-label-lv": "Šķautnes platums",
   "default": 45,
   "x-resetOnPreset": true
  },
  "blockHeight": {
   "type": "number",
   "minimum": 15,
   "maximum": 45,
   "multipleOf": 1,
   "title": "Block height",
   "description": "At its sides. 28 mm fills the hand; 18 mm reaches into corners and behind fittings.",
   "x-group": "paper",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Kluča augstums",
   "default": 28,
   "x-resetOnPreset": true
  },
  "face": {
   "type": "string",
   "enum": [
    "flat",
    "convex",
    "concave"
   ],
   "x-enumTitles": {
    "flat": "Flat",
    "convex": "Convex: a round face that stands out",
    "concave": "Concave: a hollow face"
   },
   "title": "Face",
   "description": "Flat for surfaces and edges, convex for inside curves, concave for round work such as turned legs.",
   "x-group": "face",
   "x-agentSafe": true,
   "x-label-lv": "Šķautne",
   "default": "flat",
   "x-resetOnPreset": true
  },
  "radius": {
   "type": "number",
   "minimum": 10,
   "maximum": 200,
   "multipleOf": 1,
   "title": "Face radius",
   "description": "The radius of a convex or concave face. Measure the work: a leg of 30 mm takes a concave face of R15.",
   "x-group": "face",
   "x-unit": "mm",
   "x-visibleIf": {
    "face": {
     "ne": "flat"
    }
   },
   "x-agentSafe": true,
   "x-label-lv": "Šķautnes rādiuss",
   "default": 30,
   "x-resetOnPreset": true
  },
  "grip": {
   "type": "string",
   "enum": [
    "flat",
    "dome"
   ],
   "x-enumTitles": {
    "flat": "Flat top",
    "dome": "Round top for the palm"
   },
   "title": "Top",
   "description": "A round top sits in the palm of the hand. Only on a block with a flat face, which prints the right way up.",
   "x-group": "face",
   "x-visibleIf": {
    "face": "flat"
   },
   "x-agentSafe": true,
   "x-label-lv": "Virspus",
   "default": "flat",
   "x-resetOnPreset": true
  },
  "domeRise": {
   "type": "number",
   "minimum": 2,
   "maximum": 8,
   "x-step": 0.5,
   "title": "Top rise",
   "description": "How far the top rises over its sides. More than the block has to spare is cut down.",
   "x-group": "face",
   "x-unit": "mm",
   "x-visibleIf": {
    "grip": "dome"
   },
   "x-agentSafe": true,
   "x-label-lv": "Virsmas pacēlums",
   "default": 5,
   "x-resetOnPreset": true
  },
  "corner": {
   "type": "number",
   "minimum": 0,
   "maximum": 6,
   "x-step": 0.5,
   "title": "Corner radius",
   "description": "Of the four corners of the block in plan. 0 for square corners.",
   "x-group": "face",
   "x-unit": "mm",
   "x-role": "core.fillet",
   "x-agentSafe": true,
   "x-label-lv": "Stūra rādiuss",
   "default": 3,
   "x-resetOnPreset": true
  },
  "clamp": {
   "type": "string",
   "enum": [
    "wedge",
    "slit"
   ],
   "x-enumTitles": {
    "wedge": "Wedge bars (two loose bars)",
    "slit": "Slits (one part)"
   },
   "title": "Clamp",
   "description": "Wedge bars: the ends of the paper go into a slot on each side and a tapered bar jams them: they hold hardest. Slits: the paper is pushed into a narrowing slit and holds by itself: one part.",
   "x-group": "clamp",
   "x-agentSafe": true,
   "x-label-lv": "Skava",
   "default": "wedge",
   "x-resetOnPreset": true
  },
  "text": {
   "type": "string",
   "maxLength": 10,
   "title": "Grit label",
   "description": "The grit of the paper on the block: P120, 400, coarse. Empty: no label. Up to 10 characters.",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "Graudažu etiķete",
   "default": "P120",
   "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": "Narrow letters fit a short block.",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "Burtu stils",
   "default": "lilita",
   "x-resetOnPreset": true
  },
  "letterHeight": {
   "type": "number",
   "minimum": 6,
   "maximum": 30,
   "multipleOf": 1,
   "title": "Letter height",
   "description": "Height of a capital letter. The letters shrink on their own when they do not fit.",
   "x-group": "text",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Burtu augstums",
   "default": 12,
   "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": "text",
   "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": "Raised letters stand on the top and are printed after a filament change or in a second colour. Engraved letters are cut into the top; in two colours the second colour is inlaid flush.",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "Burti",
   "default": "raised",
   "x-resetOnPreset": true
  },
  "letterDepth": {
   "type": "number",
   "minimum": 0.6,
   "maximum": 1.6,
   "x-step": 0.2,
   "title": "Letter height / depth",
   "description": "Raised: how far the letters stand up. Engraved: how deep they are cut.",
   "x-group": "text",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Burtu augstums / dziļums",
   "default": 1,
   "x-resetOnPreset": true
  },
  "topTexture": {
   "type": "string",
   "enum": [
    "none",
    "waves",
    "diamond",
    "hex",
    "wood",
    "hammered",
    "basketweave",
    "folk",
    "dots"
   ],
   "x-enumTitles": {
    "none": "Smooth (none)",
    "waves": "Waves",
    "diamond": "Diamond",
    "hex": "Hexagon",
    "wood": "Wood grain",
    "hammered": "Hammered",
    "basketweave": "Basketweave",
    "folk": "Folk diamond",
    "dots": "Dots"
   },
   "title": "Top grip texture",
   "description": "Carved non-slip relief on the flat top between the clamps, with a smooth island around the grit label. Prints flat without supports.",
   "x-group": "look",
   "x-visibleIf": {
    "face": "flat",
    "grip": "flat"
   },
   "x-agentSafe": true,
   "x-label-lv": "Virspuses satvēriena tekstūra",
   "default": "none",
   "x-resetOnPreset": true
  },
  "textureDepth": {
   "type": "number",
   "minimum": 0.3,
   "maximum": 0.7,
   "x-step": 0.05,
   "title": "Texture depth",
   "description": "Carved depth into the top face (0.3–0.7 mm).",
   "x-group": "look",
   "x-unit": "mm",
   "x-visibleIf": {
    "face": "flat",
    "grip": "flat",
    "topTexture": {
     "ne": "none"
    }
   },
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Tekstūras dziļums",
   "default": 0.5,
   "x-resetOnPreset": true
  },
  "textureScale": {
   "type": "number",
   "minimum": 5,
   "maximum": 16,
   "multipleOf": 1,
   "title": "Texture scale",
   "description": "Pattern repeat pitch in millimetres.",
   "x-group": "look",
   "x-unit": "mm",
   "x-visibleIf": {
    "face": "flat",
    "grip": "flat",
    "topTexture": {
     "ne": "none"
    }
   },
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Tekstūras mērogs",
   "default": 8,
   "x-resetOnPreset": true
  },
  "colorMode": {
   "type": "string",
   "enum": [
    "single",
    "multi"
   ],
   "x-enumTitles": {
    "single": "One colour",
    "multi": "Two colours: label and block"
   },
   "title": "Colours",
   "description": "Two colours gives two bodies in the 3MF, for a multi-material printer. One colour with raised letters: change the filament at the height the page gives.",
   "x-group": "look",
   "x-agentSafe": true,
   "x-label-lv": "Krāsas",
   "default": "multi",
   "x-resetOnPreset": true
  },
  "bodyColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Block colour",
   "description": "The block and the wedge bars.",
   "x-group": "look",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Kluča krāsa",
   "default": "#b45309",
   "x-resetOnPreset": true
  },
  "letterColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Label colour",
   "description": "The grit label.",
   "x-group": "look",
   "x-visibleIf": {
    "colorMode": "multi"
   },
   "x-agentSafe": true,
   "x-label-lv": "Etiķetes krāsa",
   "default": "#fff7ed",
   "x-resetOnPreset": true
  },
  "material": {
   "type": "string",
   "enum": [
    "petg",
    "pla",
    "asa"
   ],
   "x-enumTitles": {
    "petg": "PETG (tough, a little give)",
    "pla": "PLA",
    "asa": "ASA"
   },
   "title": "Filament",
   "description": "PETG takes the pressure of sanding without cracking; the lips of the clamps stay springy. PLA is fine for now and then; the lips of a thin block can snap.",
   "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.",
   "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 lips and the wedge bars are as wide as four lines and need them all.",
   "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": 10,
   "maximum": 100,
   "multipleOf": 5,
   "title": "Infill",
   "description": "40 % keeps a big block light and stiff; 100 % for a heavy hand.",
   "x-group": "print",
   "x-unit": "pct",
   "x-role": "print.infill",
   "x-agentSafe": true,
   "x-label-lv": "Aizpildījums",
   "default": 40,
   "x-resetOnPreset": true
  }
 },
 "additionalProperties": false,
 "recommended_materials": [
  {
   "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)"
  },
  {
   "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",
   "relation": "material",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  }
 ]
}