{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/bar-clamp/schema.json",
 "title": "Bar clamps — parameters",
 "description": "Printed bar clamps with a rail, jaws on pins and a threaded rod, and rubber-band clamps for light work: the opening, the throat and the force worked out. 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": "bar-clamp",
 "x-toolVersion": "1.0.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "kind",
   "title": "The clamp"
  },
  {
   "id": "size",
   "title": "Size"
  },
  {
   "id": "screw",
   "title": "Rail and screw"
  },
  {
   "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": "f-clamp-100mm-m8",
    "title": "F-clamp 100 mm, M8 rod",
    "description": "A graphite bar clamp with a 100 mm opening, a 40 mm throat and an M8 threaded rod, for edge gluing small panels.",
    "values": {
     "baseColor": "#1f2937",
     "railColor": "#a8b1bc"
    }
   },
   {
    "id": "glue-up-150mm-m10",
    "title": "Glue-up clamp 150 mm, M10 rod",
    "description": "A stiffer orange clamp for a 150 mm glue-up: a 60 mm jaw, a 12 mm shelf, an M10 threaded rod and a 20 × 12 mm wood stick you cut to 279 mm.",
    "values": {
     "rail": "wood",
     "opening": 150,
     "screw": "M10",
     "jawW": 60,
     "webT": 12,
     "baseColor": "#c2410c",
     "railColor": "#374151"
    }
   },
   {
    "id": "bar-clamp-wood-rail-300mm",
    "title": "Bar clamp on a wood rail, 300 mm",
    "description": "Blue jaws and pins for a 20 × 12 mm wood stick you cut to 429 mm and drill: a 300 mm opening that holds about 290 N.",
    "values": {
     "rail": "wood",
     "opening": 300,
     "jawW": 60,
     "webT": 12,
     "baseColor": "#1f4e8c"
    }
   },
   {
    "id": "deep-throat-cabinet-clamp",
    "title": "Deep-throat clamp 90 mm",
    "description": "A green clamp with a 90 mm throat for face frames and rails set back from the edge, on a 20 × 12 mm wood stick you cut to 349 mm.",
    "values": {
     "rail": "wood",
     "throat": 90,
     "opening": 120,
     "webT": 14,
     "jawW": 60,
     "baseColor": "#3f6212",
     "railColor": "#a8b1bc"
    }
   },
   {
    "id": "spring-clamp-30mm",
    "title": "Rubber-band clamp 36 mm",
    "description": "Two graphite arms on a printed pin, closed by a rubber band: jaws that open to 36 mm for holding while glue sets.",
    "values": {
     "kind": "spring",
     "baseColor": "#374151",
     "railColor": "#a8b1bc"
    }
   },
   {
    "id": "crocodile-clamp-50mm-soft-pads",
    "title": "Crocodile clamp 50 mm, soft pads",
    "description": "A teal rubber-band clamp with 50 mm jaws and recesses for felt pads, for photo backdrops and painted work.",
    "values": {
     "kind": "spring",
     "jawLen": 50,
     "pads": true,
     "baseColor": "#0e7490",
     "railColor": "#f3efe6"
    }
   },
   {
    "id": "mini-clamp-20mm",
    "title": "Mini clamp 20 mm",
    "description": "A small red rubber-band clamp with 8 mm arms for models, jigs and delicate work.",
    "values": {
     "kind": "spring",
     "jawLen": 20,
     "handleLen": 30,
     "armW": 8,
     "baseColor": "#b91c1c",
     "railColor": "#f3efe6"
    }
   },
   {
    "id": "model-makers-light-clamp",
    "title": "Model maker light clamp",
    "description": "A sand-coloured rubber-band clamp with 28 mm jaws, sized for card, balsa and 3D printed parts.",
    "values": {
     "kind": "spring",
     "jawLen": 28,
     "armW": 10,
     "baseColor": "#a16207",
     "railColor": "#374151"
    }
   }
  ]
 },
 "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": {
  "kind": {
   "type": "string",
   "enum": [
    "bar",
    "spring"
   ],
   "x-enumTitles": {
    "bar": "Bar clamp: two jaws on a rail and a threaded rod, for glue-ups and holding work",
    "spring": "Rubber-band clamp: two arms on a pin, a band closes them"
   },
   "title": "Kind",
   "description": "A bar clamp for woodwork and glue-ups; a rubber-band clamp for light work, models and photo backdrops.",
   "x-group": "kind",
   "x-agentSafe": true,
   "x-label-lv": "Veids",
   "default": "bar",
   "x-resetOnPreset": true
  },
  "opening": {
   "type": "number",
   "minimum": 20,
   "maximum": 300,
   "multipleOf": 10,
   "title": "Opening",
   "description": "Between the faces of the two jaws at their closest pin holes.",
   "x-group": "size",
   "x-unit": "mm",
   "x-visibleIf": {
    "kind": [
     "bar"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Atvērums",
   "default": 100,
   "x-resetOnPreset": true
  },
  "throat": {
   "type": "number",
   "minimum": 20,
   "maximum": 120,
   "multipleOf": 10,
   "title": "Throat depth",
   "description": "From the rail to the face of the jaw: how deep a board fits under the rail.",
   "x-group": "size",
   "x-unit": "mm",
   "x-visibleIf": {
    "kind": [
     "bar"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Kakla dziļums",
   "default": 40,
   "x-resetOnPreset": true
  },
  "jawW": {
   "type": "number",
   "minimum": 30,
   "maximum": 80,
   "multipleOf": 5,
   "title": "Jaw width",
   "description": "Across the jaws. A wide jaw holds a wide board and bends less.",
   "x-group": "size",
   "x-unit": "mm",
   "x-visibleIf": {
    "kind": [
     "bar"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Žokļa platums",
   "default": 50,
   "x-resetOnPreset": true
  },
  "faceH": {
   "type": "number",
   "minimum": 30,
   "maximum": 100,
   "multipleOf": 10,
   "title": "Face height",
   "description": "How tall the faces of the jaws stand.",
   "x-group": "size",
   "x-unit": "mm",
   "x-visibleIf": {
    "kind": [
     "bar"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Virsmas augstums",
   "default": 60,
   "x-resetOnPreset": true
  },
  "webT": {
   "type": "number",
   "minimum": 6,
   "maximum": 14,
   "multipleOf": 1,
   "title": "Web thickness",
   "description": "Of the shelf each jaw stands on. Thicker holds more: the page says how much.",
   "x-group": "size",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-visibleIf": {
    "kind": [
     "bar"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Sienas biezums",
   "default": 10,
   "x-resetOnPreset": true
  },
  "jawLen": {
   "type": "number",
   "minimum": 20,
   "maximum": 80,
   "multipleOf": 1,
   "title": "Jaw length",
   "description": "From the pin to the tip of the jaw. Longer jaws open wider.",
   "x-group": "size",
   "x-unit": "mm",
   "x-visibleIf": {
    "kind": [
     "spring"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Žokļa garums",
   "default": 36,
   "x-resetOnPreset": true
  },
  "handleLen": {
   "type": "number",
   "minimum": 30,
   "maximum": 100,
   "multipleOf": 5,
   "title": "Handle length",
   "description": "From the pin to the slot for the band.",
   "x-group": "size",
   "x-unit": "mm",
   "x-visibleIf": {
    "kind": [
     "spring"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Roktura garums",
   "default": 50,
   "x-resetOnPreset": true
  },
  "armW": {
   "type": "number",
   "minimum": 8,
   "maximum": 20,
   "multipleOf": 2,
   "title": "Arm width",
   "description": "Across the arms. Wide arms grip a wide edge.",
   "x-group": "size",
   "x-unit": "mm",
   "x-visibleIf": {
    "kind": [
     "spring"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Roka platums",
   "default": 14,
   "x-resetOnPreset": true
  },
  "pads": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Soft pad recess",
   "description": "A 1 mm recess on each jaw for a felt or TPU pad, to grip without marking.",
   "x-group": "size",
   "x-visibleIf": {
    "kind": [
     "spring"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Mīkstās pamatnes ligzda",
   "default": 0,
   "x-resetOnPreset": true
  },
  "rail": {
   "type": "string",
   "enum": [
    "printed",
    "wood"
   ],
   "x-enumTitles": {
    "printed": "Printed rail",
    "wood": "Wood stick, 20 × 12 mm, drilled"
   },
   "title": "Rail",
   "description": "A printed rail up to a 250 mm bed; a wood stick for a long clamp: the page says how long and where to drill.",
   "x-group": "screw",
   "x-visibleIf": {
    "kind": [
     "bar"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Sliede",
   "default": "printed",
   "x-resetOnPreset": true
  },
  "barW": {
   "type": "number",
   "minimum": 16,
   "maximum": 24,
   "multipleOf": 2,
   "title": "Rail width",
   "description": "Across the rail. A wood stick is 20 mm.",
   "x-group": "screw",
   "x-unit": "mm",
   "x-visibleIf": {
    "kind": [
     "bar"
    ],
    "rail": [
     "printed"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Sliedes platums",
   "default": 20,
   "x-resetOnPreset": true
  },
  "barH": {
   "type": "number",
   "minimum": 10,
   "maximum": 16,
   "multipleOf": 2,
   "title": "Rail height",
   "description": "Of the rail. A wood stick is 12 mm.",
   "x-group": "screw",
   "x-unit": "mm",
   "x-visibleIf": {
    "kind": [
     "bar"
    ],
    "rail": [
     "printed"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Sliedes augstums",
   "default": 12,
   "x-resetOnPreset": true
  },
  "screw": {
   "type": "string",
   "enum": [
    "M8",
    "M10"
   ],
   "x-enumTitles": {
    "M8": "M8 threaded rod, two nuts",
    "M10": "M10 threaded rod, two nuts"
   },
   "title": "Screw",
   "description": "A steel threaded rod with a nut in the jaw and a nut in the knob. M8 turns easier, M10 holds more.",
   "x-group": "screw",
   "x-visibleIf": {
    "kind": [
     "bar"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Skrūve",
   "default": "M8",
   "x-resetOnPreset": true
  },
  "knobD": {
   "type": "number",
   "minimum": 30,
   "maximum": 60,
   "multipleOf": 5,
   "title": "Knob diameter",
   "description": "Of the hand knob on the rod.",
   "x-group": "screw",
   "x-unit": "mm",
   "x-visibleIf": {
    "kind": [
     "bar"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Pogas diametrs",
   "default": 40,
   "x-resetOnPreset": true
  },
  "fitCoupon": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Fit coupon",
   "description": "A short piece of the jaw channel, to try the rail before printing the jaws.",
   "x-group": "screw",
   "x-visibleIf": {
    "kind": [
     "bar"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Pielaides kupons",
   "default": 1,
   "x-resetOnPreset": true
  },
  "material": {
   "type": "string",
   "enum": [
    "petg",
    "asa",
    "pla"
   ],
   "x-enumTitles": {
    "petg": "PETG",
    "asa": "ASA",
    "pla": "PLA"
   },
   "title": "Filament",
   "description": "PETG with 4 walls for a clamp that stays tight: PLA creeps under a load and lets go.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Filaments",
   "default": "petg",
   "x-resetOnPreset": true
  },
  "baseColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Colour",
   "description": "The clamp and its parts.",
   "x-group": "print",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Krāsa",
   "default": "#1f2937",
   "x-resetOnPreset": true
  },
  "railColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Rail, pin and knob colour",
   "description": "A colour of its own for the rail, the pins and the knob: a two-colour clamp from two filaments, with no nozzle change. The main colour for a one-colour clamp.",
   "x-group": "print",
   "x-agentSafe": true,
   "x-label-lv": "Sliedes, tapu un pogas krāsa",
   "default": "#1f2937",
   "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)"
  }
 ]
}