{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/pipe-clamp/schema.json",
 "title": "Pipe clamp — parameters",
 "description": "Snap-in clips for pipes and tubes, cut to the diameter you measure: PVC, copper, PEX, hose, square tube, one or three on a bar, with a fit ring to try first. 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": "pipe-clamp",
 "x-toolVersion": "1.0.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "clip",
   "title": "Pipe"
  },
  {
   "id": "fit",
   "title": "Snap fit"
  },
  {
   "id": "mount",
   "title": "Mounting"
  },
  {
   "id": "look",
   "title": "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": "pvc-pipe-clip-32mm",
    "title": "PVC drain pipe clip, 32 mm",
    "description": "A snap-in wall clip for 32 mm PVC drain pipe, 10 mm wide on an M4 screw, in PETG. Measure yours first: they run 31.6 to 32.4.",
    "values": {
     "shape": "round",
     "pipeSize": 32,
     "width": 10,
     "wall": 2.5,
     "count": 1,
     "spacing": 50,
     "clearance": 0.2,
     "snap": 78,
     "fitRing": true,
     "standoff": 0,
     "screw": "m4",
     "baseColor": "#0e7490",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 20
    }
   },
   {
    "id": "pvc-pipe-clip-40mm",
    "title": "PVC drain pipe clip, 40 mm",
    "description": "For 40 mm PVC waste pipe, with a wider ring that snaps on with a push and holds a vertical run.",
    "values": {
     "shape": "round",
     "pipeSize": 40,
     "width": 10,
     "wall": 3,
     "count": 1,
     "spacing": 50,
     "clearance": 0.2,
     "snap": 78,
     "fitRing": true,
     "standoff": 0,
     "screw": "m4",
     "baseColor": "#b45309",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 20
    }
   },
   {
    "id": "pvc-pipe-clip-50mm",
    "title": "PVC drain pipe clip, 50 mm",
    "description": "For 50 mm soil pipe: a 16 mm wide clip with a 3 mm ring and an M6 screw, printed in ASA for the outside wall.",
    "values": {
     "shape": "round",
     "pipeSize": 50,
     "width": 16,
     "wall": 3,
     "count": 1,
     "spacing": 50,
     "clearance": 0.2,
     "snap": 78,
     "fitRing": true,
     "standoff": 10,
     "screw": "m6",
     "baseColor": "#1d4ed8",
     "material": "asa",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 20
    }
   },
   {
    "id": "copper-pipe-clip-15mm",
    "title": "Copper or PEX pipe clip, 15 mm",
    "description": "A light clip for 15 mm copper or PEX, 8 mm wide with a 2 mm ring, on an M3 screw. Keep it away from hot pipes: PETG softens at 80 °C.",
    "values": {
     "shape": "round",
     "pipeSize": 15,
     "width": 8,
     "wall": 2,
     "count": 1,
     "spacing": 50,
     "clearance": 0.2,
     "snap": 78,
     "fitRing": true,
     "standoff": 0,
     "screw": "m3",
     "baseColor": "#a21caf",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 20
    }
   },
   {
    "id": "garden-hose-clip-18mm",
    "title": "Garden hose wall clip, 18 mm",
    "description": "For a 13 mm (½ inch) garden hose, about 18 mm across, on the outside wall. A looser snap lets the hose pull through without jamming.",
    "values": {
     "shape": "round",
     "pipeSize": 18,
     "width": 12,
     "wall": 2.5,
     "count": 1,
     "spacing": 50,
     "clearance": 0.2,
     "snap": 85,
     "fitRing": true,
     "standoff": 0,
     "screw": "m4",
     "baseColor": "#15803d",
     "material": "asa",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 20
    }
   },
   {
    "id": "broom-handle-wall-clip-25mm",
    "title": "Broom handle wall clip, 25 mm",
    "description": "For a 25 mm broom or mop handle, standing 10 mm off the wall so that the handle clears a skirting board.",
    "values": {
     "shape": "round",
     "pipeSize": 25,
     "width": 16,
     "wall": 3,
     "count": 1,
     "spacing": 50,
     "clearance": 0.2,
     "snap": 78,
     "fitRing": true,
     "standoff": 10,
     "screw": "m4",
     "baseColor": "#a16207",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 20
    }
   },
   {
    "id": "double-pipe-clip-22mm",
    "title": "Double clip for two 22 mm pipes",
    "description": "Two PEX or copper pipes side by side, 50 mm apart, on one plate with two screw holes.",
    "values": {
     "shape": "round",
     "pipeSize": 22,
     "width": 10,
     "wall": 2.5,
     "count": 2,
     "spacing": 50,
     "clearance": 0.2,
     "snap": 78,
     "fitRing": true,
     "standoff": 0,
     "screw": "m4",
     "baseColor": "#b91c1c",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 20
    }
   },
   {
    "id": "square-tube-clip-25mm",
    "title": "Square tube clip, 25 mm",
    "description": "For 25 mm square steel tube, with rounded corners so that it snaps on without catching.",
    "values": {
     "shape": "square",
     "pipeSize": 25,
     "width": 10,
     "wall": 3,
     "count": 1,
     "spacing": 50,
     "clearance": 0.2,
     "snap": 78,
     "fitRing": true,
     "standoff": 0,
     "screw": "m4",
     "baseColor": "#374151",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 20
    }
   }
  ]
 },
 "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": {
  "shape": {
   "type": "string",
   "enum": [
    "round",
    "square"
   ],
   "x-enumTitles": {
    "round": "Round pipe or tube",
    "square": "Square tube"
   },
   "title": "Pipe shape",
   "description": "A round pipe, or a square tube with its corners.",
   "x-group": "clip",
   "x-agentSafe": true,
   "x-label-lv": "Caurules profils",
   "default": "round",
   "x-resetOnPreset": true
  },
  "pipeSize": {
   "type": "number",
   "minimum": 6,
   "maximum": 120,
   "x-step": 0.5,
   "title": "Pipe size",
   "description": "Outside diameter of a round pipe, or the side of a square tube. Measure across with calipers, not from the label: a \"32 mm\" drain pipe is often 31.6.",
   "x-group": "clip",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Caurules izmērs",
   "default": 32,
   "x-resetOnPreset": true
  },
  "width": {
   "type": "number",
   "minimum": 6,
   "maximum": 24,
   "multipleOf": 1,
   "title": "Clip width",
   "description": "How wide the clip is along the pipe. 10 mm holds a pipe on the wall; 16 mm or more for a heavy pipe or one that moves.",
   "x-group": "clip",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Skavas platums",
   "default": 10,
   "x-resetOnPreset": true
  },
  "wall": {
   "type": "number",
   "minimum": 2,
   "maximum": 5,
   "x-step": 0.5,
   "title": "Wall thickness",
   "description": "Of the ring. A thin ring snaps on easily and holds softly; a thick one holds hard and needs force.",
   "x-group": "clip",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-agentSafe": true,
   "x-label-lv": "Sienas biezums",
   "default": 2.5,
   "x-resetOnPreset": true
  },
  "count": {
   "type": "integer",
   "minimum": 1,
   "maximum": 3,
   "multipleOf": 1,
   "title": "Pipes side by side",
   "description": "One clip, or two or three on one bar for parallel pipes.",
   "x-group": "clip",
   "x-unit": "count",
   "x-agentSafe": true,
   "x-label-lv": "Caurules blakus",
   "default": 1,
   "x-resetOnPreset": true
  },
  "spacing": {
   "type": "number",
   "minimum": 10,
   "maximum": 200,
   "multipleOf": 1,
   "title": "Pipe spacing",
   "description": "Centre to centre of two neighbouring pipes.",
   "x-group": "clip",
   "x-unit": "mm",
   "x-visibleIf": {
    "count": {
     "gte": 2
    }
   },
   "x-agentSafe": true,
   "x-label-lv": "Atstarpe starp caurulēm",
   "default": 50,
   "x-resetOnPreset": true
  },
  "clearance": {
   "type": "number",
   "minimum": 0.1,
   "maximum": 1,
   "x-step": 0.05,
   "title": "Clearance per side",
   "description": "Room between the pipe and the ring, on each side. 0.2 mm snaps on and holds; 0.5 mm slides on. Print the fit ring first.",
   "x-group": "fit",
   "x-unit": "mm",
   "x-role": "core.clearance",
   "x-agentSafe": true,
   "x-label-lv": "Atstarpe katrā pusē",
   "default": 0.2,
   "x-resetOnPreset": true
  },
  "snap": {
   "type": "number",
   "minimum": 60,
   "maximum": 95,
   "multipleOf": 1,
   "title": "Snap opening",
   "description": "How wide the opening is, as a share of the pipe. Under 70 the lips may crack going on; over 85 the pipe may fall out. The page says how far the lips bend.",
   "x-group": "fit",
   "x-unit": "pct",
   "x-agentSafe": true,
   "x-label-lv": "Aizdauzāšanās atvere",
   "default": 78,
   "x-resetOnPreset": true
  },
  "fitRing": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Fit ring",
   "description": "A short piece of the ring, 6 mm wide, to try on the pipe before printing the whole clip.",
   "x-group": "fit",
   "x-agentSafe": true,
   "x-label-lv": "Pielaides gredzens",
   "default": 1,
   "x-resetOnPreset": true
  },
  "standoff": {
   "type": "number",
   "minimum": 0,
   "maximum": 30,
   "multipleOf": 1,
   "title": "Stand-off from the wall",
   "description": "How far the ring stands out from the screw, so that the pipe clears the wall or a skirting board. 0: as close as the screw allows.",
   "x-group": "mount",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Atstatums no sienas",
   "default": 0,
   "x-resetOnPreset": true
  },
  "screw": {
   "type": "string",
   "enum": [
    "m3",
    "m4",
    "m5",
    "m6"
   ],
   "x-enumTitles": {
    "m3": "M3",
    "m4": "M4",
    "m5": "M5",
    "m6": "M6"
   },
   "title": "Screw",
   "description": "The hole in the tab is this size plus half a millimetre, for a wood screw or a screw into a wall plug.",
   "x-group": "mount",
   "x-agentSafe": true,
   "x-label-lv": "Skrūve",
   "default": "m4",
   "x-resetOnPreset": true
  },
  "baseColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Clip colour",
   "description": "The clip and its fit ring.",
   "x-group": "look",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Skavas krāsa",
   "default": "#0e7490",
   "x-resetOnPreset": true
  },
  "material": {
   "type": "string",
   "enum": [
    "petg",
    "asa",
    "pla"
   ],
   "x-enumTitles": {
    "petg": "PETG",
    "asa": "ASA",
    "pla": "PLA"
   },
   "title": "Filament",
   "description": "PETG snaps on without cracking; ASA for outdoors and sunlight. PLA goes brittle and fades outside.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Filaments",
   "default": "petg",
   "x-resetOnPreset": true
  },
  "layerHeight": {
   "type": "number",
   "minimum": 0.12,
   "maximum": 0.3,
   "x-step": 0.02,
   "title": "Layer height",
   "description": "0.2 mm for a clip; 0.16 mm for a small one with a thin tab.",
   "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": 2,
   "maximum": 8,
   "multipleOf": 1,
   "title": "Perimeter walls",
   "description": "A clip is all walls: four lines make 2.5 mm solid.",
   "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": 0,
   "maximum": 100,
   "multipleOf": 5,
   "title": "Infill",
   "description": "Only the screw tab has room for infill; the ring prints solid.",
   "x-group": "print",
   "x-unit": "pct",
   "x-role": "print.infill",
   "x-agentSafe": true,
   "x-label-lv": "Aizpildījums",
   "default": 20,
   "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)"
  }
 ]
}