{
 "description": "NEMA 17 L mount, 2 mm steel, R2 inside bend, K 0.44: 50x40 base with two 5.5x12 M5 slots, 50x50 upright with 22.5 bore and 4x3.4 holes on 31 mm square.",
 "commands": [
  {
   "command": "sheet.manage_rules",
   "params": {
    "name": "Steel 2",
    "thickness": "2 mm",
    "bend_radius": "2 mm",
    "k_factor": 0.44,
    "active": true
   }
  },
  {
   "command": "sketch.create",
   "params": {
    "plane": "XY",
    "name": "Base"
   }
  },
  {
   "command": "sketch.rectangle.two_point",
   "params": {
    "p0": [
     0,
     0
    ],
    "p1": [
     50,
     40
    ]
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "sheet.flange",
   "params": {
    "type": "base",
    "sketch": "Base",
    "name": "BaseFlange"
   }
  },
  {
   "command": "sheet.flange",
   "params": {
    "edges": [
     [
      25,
      40,
      2
     ]
    ],
    "height": 50,
    "name": "Upright"
   }
  },
  {
   "command": "solid.hole",
   "params": {
    "position": [
     25,
     40,
     25
    ],
    "diameter": 22.5,
    "name": "Bore"
   }
  },
  {
   "command": "solid.hole",
   "params": {
    "position": [
     9.5,
     40,
     9.5
    ],
    "diameter": 3.4,
    "name": "M3Hole1"
   }
  },
  {
   "command": "solid.hole",
   "params": {
    "position": [
     40.5,
     40,
     9.5
    ],
    "diameter": 3.4,
    "name": "M3Hole2"
   }
  },
  {
   "command": "solid.hole",
   "params": {
    "position": [
     9.5,
     40,
     40.5
    ],
    "diameter": 3.4,
    "name": "M3Hole3"
   }
  },
  {
   "command": "solid.hole",
   "params": {
    "position": [
     40.5,
     40,
     40.5
    ],
    "diameter": 3.4,
    "name": "M3Hole4"
   }
  },
  {
   "command": "sketch.create",
   "params": {
    "plane": "XY",
    "name": "Slots"
   }
  },
  {
   "command": "sketch.slot.overall",
   "params": {
    "p0": [
     12.5,
     12
    ],
    "p1": [
     12.5,
     24
    ],
    "width": 5.5
   }
  },
  {
   "command": "sketch.slot.overall",
   "params": {
    "p0": [
     37.5,
     12
    ],
    "p1": [
     37.5,
     24
    ],
    "width": 5.5
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "solid.extrude",
   "params": {
    "through_all": true,
    "direction": "symmetric",
    "operation": "cut",
    "name": "M5Slots"
   }
  },
  {
   "command": "sheet.flat_pattern",
   "params": {}
  },
  {
   "command": "sheet.export_dxf",
   "params": {
    "path": "flat.dxf",
    "bend_notes": true
   }
  },
  {
   "command": "sheet.export_bend_table",
   "params": {
    "format": "csv",
    "path": "bends.csv"
   }
  }
 ]
}