RE: Aligning parts using rotation scripts
2021-12-16, 18:44 (This post was last modified: 2021-12-16, 18:45 by David Manley.)
2021-12-16, 18:44 (This post was last modified: 2021-12-16, 18:45 by David Manley.)
(2021-12-16, 16:18)N. W. Perry Wrote: ...
As you know, the two-part rotation is also somewhat present in LDCad using Selection Info, this time with the triangle function. But again, you have to manually copy the rotation angles and apply them yourself (although this time the program correctly decides which direction to rotate).
...
This would also match the behavior of Roland's custom right angle script, which is used to rotate a part so that it rests against an unknown point on a plane, such as a ladder leaning against a wall. In that script you select 1) the endpoint of the part being rotated, 2) the rotation center, and 3) a point on the plane that is normal to the rotation center.
...
I wasn't aware of the triangle function until your post! A helpful observation for me to take on board. I'll see if I receive any other feedback before making changes. Modifying the part selection order is a straight forward change (it will probably take me longer to redraw the images in this thread).
Regards,
David