Skip to content

SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.

1.7 KB
Raw Blame
[
 {
  "note": "Two edge flanges in one feature; the second gets an angle of its own in its row of the Flange dialog. Default rule: T 2.5, R 2.5, gap 2.5; height 10. By hand: s0 = (R + T)·tan(θ/2) is 5 at 90° and 2.886751 at 60°, so the base keeps 57.113249 x 35 = 1998.963703 mm². Each bend holds len·θ·(R + T/2): 57.113249·(π/2)·3.75 + 35·(π/3)·3.75 = 473.869483. The 90° panel ends x(w) = ((g/2)·√2 + T − w·cos 60°) / sin 60° from the corner, 2.041241 at w = 5 and −0.845510 at w = 10: 5·(60 − 0.597866) = 297.010671. The 60° panel ends (g/2)·√2 + T = 4.267767 from the corner and is 7.113249 high: 254.172259. Volume: 2.5·3024.016116 = 7560.040 mm³."
 },
 {
  "call": "ui.set",
  "params": {
   "tab": "SHEET METAL"
  }
 },
 {
  "start": "sketch.create"
 },
 {
  "click": {
   "plane": "XY"
  }
 },
 {
  "start": "sketch.rectangle.two_point"
 },
 {
  "click": {
   "sketch": [
    0,
    0
   ]
  }
 },
 {
  "click": {
   "sketch": [
    60,
    40
   ]
  }
 },
 {
  "key": "Escape"
 },
 {
  "start": "sketch.finish"
 },
 {
  "call": "ui.view",
  "params": {
   "view": "iso"
  }
 },
 {
  "start": "sheet.flange"
 },
 {
  "click": {
   "world": [
    30,
    20,
    0
   ]
  }
 },
 {
  "key": "Enter"
 },
 {
  "expect": {
   "bodies": 1,
   "volume": 6000
  }
 },
 {
  "start": "sheet.flange"
 },
 {
  "click": {
   "world": [
    30,
    0,
    2.5
   ]
  }
 },
 {
  "click": {
   "world": [
    60,
    20,
    2.5
   ]
  }
 },
 {"click": {"handle": "dialog:section:Advanced"}},
 {
  "click": {
   "handle": "dialog:Edge 2 angle"
  }
 },
 {
  "text": "60 deg"
 },
 {
  "key": "Enter"
 },
 {
  "expect": {
   "bodies": 1,
   "errors": 0,
   "dialog": null,
   "volume": [
    7560.04,
    0.0001
   ]
  }
 },
 {
  "shot": "s49_flange_per_edge"
 }
]