Hello! I’m learning Ruby and have been trying a lot of tutorials, but getting frustrated with the steep learning curve to get me off the ground.
I’d like to write a script that takes a selected group in a sketch, makes a copy, moves and rotates that copy, then repeats, copying the original selection and moving that copy. The idea is to sketch a complex shape and then use that shape as faces in polyhedron, with the script doing all the copying, moving and rotating for me.
I’d love it if someone could post some a piece of code that could get me started. Thank you!
(My first draft will simply be making 8 copies and arranging them in an octahedron “brute-force”. Later I’d like to define vectors and move the groups with their centers on the ends of those vectors and rotated so that the x-plane for example is normal to those vectors.)