Skip to content

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

1.5 KB
Raw Blame
[
  {"note":"Each instance has a selectable full path. The second row targets its placement, eye and fold independently."},
  {"call":"engine.execute","params":{"command":"component.create","params":{"name":"Block"}}},
  {"call":"engine.execute","params":{"command":"solid.box","params":{"length":10,"width":10,"height":10}}},
  {"call":"engine.execute","params":{"command":"component.activate","params":{"component":0}}},
  {"call":"engine.execute","params":{"command":"occurrence.copy","params":{"component":"Block","translate":[50,0,0]}}},
  {"click":{"handle":"row:occurrence:4"}},
  {"expect":{"selection":1}},
  {"call":"ui.menu","params":{"x":300,"y":300,"target":{"type":"occurrence","path":[4]}}},
  {"call":"ui.menuPick","params":{"item":"Properties"}},
  {"expect":{"shown":"(55.00, 5.00, 5.00) mm","query":{"command":"occurrence.properties","params":{"occurrence":4,"path":[4]},"path":["total","center_of_mass",0],"value":55}}},
  {"shot":"second_occurrence_properties"},
  {"click":{"handle":"eye:occurrence:4"}},
  {"note":"Placements start closed (#9274): the fold arrow opens the row, then folds it again."},
  {"click":{"handle":"fold:occurrence:4"}},
  {"click":{"handle":"fold:occurrence:4"}},
  {"shot":"second_occurrence_hidden_folded"},
  {"click":{"handle":"eye:occurrence:4"}},
  {"click":{"handle":"activate:occurrence:4"}},
  {"call":"ui.menu","params":{"x":300,"y":300,"target":{"type":"occurrence","path":[4]}}},
  {"call":"ui.menuPick","params":{"item":"Move/Copy"}},
  {"expect":{"shown":"Move: Block:2"}},
  {"shot":"second_occurrence_move"}
]