Re: Rotating rectangles
Posted by
LordOfBikes on
Feb 08, 2024; 7:58pm
URL: https://forum.librecad.org/Rotating-rectangles-tp5724270p5724271.html
Hi Charles,
you can use line instead of rectangle and relative polar coordinates.
For the first rectangle rotated e.g. use:
li;-122.5,-50;@9<180+37;@4<270+37;@9<0+37;@4<90+37
If it is required that the rectangle is a single entity, you can use polyline:
pl;-122.5,-50;@9<180+37;@4<270+37;@9<0+37;close
I used e.g.
<180+37 to make the origin direction and the rotation angle visible. LibreCAD does the math for you.
For reference see
https://docs.librecad.org/en/latest/ref/fundamentals.html?#polarArmin
investing less than half an hour into Search function can save hours or days of waiting for a solution