Feat/Sketch: associative pattern tools with independent directions and Flip/Center controls (#1601)
Thanks @Karl-VonRichter.
This commit is contained in:
1 parent
44968dbfe6
commit
371578a06f
36 files changed
+1394
-87
No files matched your search
@@ -0,0 +1,33 @@
|
||||
[
|
||||
{"note":"Six total holes span 90 degrees around the original; Flip chooses the extra side without moving the seed."},
|
||||
{"call":"engine.execute","params":{"command":"sketch.create","params":{"plane":"XY"}}},
|
||||
{"call":"engine.execute","params":{"command":"sketch.circle.center","params":{"center":[40,0],"radius":2,"id":"seed"}}},
|
||||
{"call":"engine.execute","params":{"command":"sketch.point","params":{"point":[0,0],"id":"axis_center"}}},
|
||||
{"call":"engine.execute","params":{"command":"sketch.constraint.fix","params":{"entities":["axis_center"]}}},
|
||||
{"call":"ui.view","params":{"view":"top"}},
|
||||
{"call":"ui.camera","params":{"target":[25,0,0],"distance":120}},
|
||||
{"start":"sketch.pattern.circular"},
|
||||
{"click":{"sketch":[42,0]}},
|
||||
{"click":{"handle":"dialog:Center"}},
|
||||
{"click":{"sketch":[0,0]}},
|
||||
{"click":{"handle":"dialog:Quantity"}},
|
||||
{"key":"A","cmd":true},
|
||||
{"text":"6"},
|
||||
{"click":{"handle":"dialog:Total angle"}},
|
||||
{"key":"A","cmd":true},
|
||||
{"text":"90 deg"},
|
||||
{"click":{"handle":"dialog:Alignment:Center"}},
|
||||
{"shot":"sketch_pattern_circular_center_before_flip"},
|
||||
{"click":{"handle":"dialog:Alignment:Flip direction"}},
|
||||
{"shot":"sketch_pattern_circular_center_after_flip"},
|
||||
{"click":{"handle":"dialog:OK"}},
|
||||
{"expect":{"dialog":null,"errors":0,"sketch_curves":{"own":6}}},
|
||||
{"expect":{"query":{"command":"sketch.inspect","path":["curves",5,"center_at",0],"value":23.511410091698927}}},
|
||||
{"expect":{"query":{"command":"sketch.inspect","path":["curves",5,"center_at",1],"value":-32.3606797749979}}},
|
||||
{"expect":{"query":{"command":"sketch.inspect","path":["curves",0,"center_at",0],"value":40}}},
|
||||
{"expect":{"query":{"command":"sketch.inspect","path":["curves",0,"center_at",1],"value":0}}},
|
||||
{"call":"engine.execute","params":{"command":"sketch.drag","params":{"entity":"seed.center","from":[40,0],"to":[45,0]}}},
|
||||
{"expect":{"query":{"command":"sketch.inspect","path":["curves",5,"center_at",0],"value":26.45033635316129}}},
|
||||
{"expect":{"query":{"command":"sketch.inspect","path":["curves",5,"center_at",1],"value":-36.405764746872634}}},
|
||||
{"shot":"sketch_pattern_circular_center_source_edit"}
|
||||
]
|
||||
Reference in new issue
Block a user