50 lines
3.1 KiB
JSON
50 lines
3.1 KiB
JSON
[
|
|
{"note":"Even centered totals keep the original fixed; Flip chooses the extra side independently for each direction."},
|
|
{"call":"engine.execute","params":{"command":"sketch.create","params":{"plane":"XY"}}},
|
|
{"call":"engine.execute","params":{"command":"sketch.circle.center","params":{"center":[5,5],"radius":2,"id":"seed"}}},
|
|
{"call":"engine.execute","params":{"command":"sketch.line","params":{"points":[[0,-10],[20,-10]],"ids":["guide1"]}}},
|
|
{"call":"engine.execute","params":{"command":"sketch.line","params":{"points":[[0,-30],[12,-14]],"ids":["guide2"]}}},
|
|
{"call":"engine.execute","params":{"command":"sketch.constraint.fix","params":{"entities":["guide1","guide2"],"fixed":true}}},
|
|
{"call":"ui.view","params":{"view":"top"}},
|
|
{"click":{"handle":"toolbar:sketch.pattern.rectangular"}},
|
|
{"click":{"sketch":[7,5]}},
|
|
{"click":{"handle":"dialog:Direction"}},
|
|
{"click":{"sketch":[10,-10]}},
|
|
{"click":{"handle":"dialog:Direction 2"}},
|
|
{"click":{"sketch":[6,-22]}},
|
|
{"click":{"handle":"dialog:Quantity"}},
|
|
{"key":"A","cmd":true},
|
|
{"text":"4"},
|
|
{"click":{"handle":"dialog:Spacing"}},
|
|
{"key":"A","cmd":true},
|
|
{"text":"20"},
|
|
{"click":{"handle":"dialog:Quantity 2"}},
|
|
{"key":"A","cmd":true},
|
|
{"text":"2"},
|
|
{"click":{"handle":"dialog:Spacing 2"}},
|
|
{"key":"A","cmd":true},
|
|
{"text":"10"},
|
|
{"expect":{"dialog":"PatternRect","errors":0,"sketch_curves":{"own":3}}},
|
|
{"click":{"handle":"dialog:Alignment:Center"}},
|
|
{"click":{"handle":"dialog:Alignment 2:Center"}},
|
|
{"click":{"handle":"dialog:Alignment:Flip direction"}},
|
|
{"shot":"sketch_pattern_even_center_preview"},
|
|
{"click":{"handle":"dialog:OK"}},
|
|
{"expect":{"dialog":null,"errors":0,"sketch_curves":{"own":10}}},
|
|
{"expect":{"query":{"command":"sketch.inspect","path":["curves",9,"center_at",0],"value":-29}}},
|
|
{"expect":{"query":{"command":"sketch.inspect","path":["curves",9,"center_at",1],"value":13}}},
|
|
{"call":"ui.view","params":{"view":"fit"}},
|
|
{"shot":"sketch_pattern_even_center_before"},
|
|
{"call":"engine.execute","params":{"command":"sketch.drag","params":{"entity":"seed.center","from":[5,5],"to":[7,8]}}},
|
|
{"expect":{"query":{"command":"sketch.inspect","path":["curves",9,"center_at",0],"value":-27}}},
|
|
{"expect":{"query":{"command":"sketch.inspect","path":["curves",9,"center_at",1],"value":16}}},
|
|
{"call":"engine.execute","params":{"command":"sketch.constraint.fix","params":{"entities":["seed"],"fixed":true}}},
|
|
{"call":"engine.execute","params":{"command":"sketch.constraint.fix","params":{"entities":["guide2"],"fixed":false}}},
|
|
{"call":"engine.execute","params":{"command":"sketch.constraint.fix","params":{"entities":["guide2.start"],"fixed":true}}},
|
|
{"call":"engine.execute","params":{"command":"sketch.drag","params":{"entity":"guide2.end","from":[12,-14],"to":[16,-18]}}},
|
|
{"expect":{"query":{"command":"sketch.inspect","path":["curves",9,"center_at",0],"value":-25}}},
|
|
{"expect":{"query":{"command":"sketch.inspect","path":["curves",9,"center_at",1],"value":14}}},
|
|
{"expect":{"errors":0,"sketch_curves":{"own":10}}},
|
|
{"shot":"sketch_pattern_even_center_after"}
|
|
]
|