Using the Line tool "Relative Angle" from the command line

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Using the Line tool "Relative Angle" from the command line

ststst
I feel like this must have been asked before, but nothing came up when I searched. Is it possible to use the Relative Angle option with the Line tool from the command line? The documentation (https://docs.librecad.org/en/latest/ref/tools.html#tools) showed no command for the tool, which is not promising. I have dozens of line segments and entering everything using the menus and then positioning the lines with the mouse would be very tedious.

e.g.

I can use the line tool from the command line to create a line with length 10, beginning at point (0,0) and rotated ccw 45 degrees relative to the x-axis.

line
0,0
@10<45

I can create a second line segment, same length, beginning at the end of the first. This is really cool!

@10<45

But now I've run into a problem. The new line is rotated ccw 45 degrees from the x-axis, but I actually wanted it to be rotated 45 degrees relative to the previous line. In this case, I can figure out the angle, but after several line segments at various angles, I'm manually performing the calculations that I was hoping the program would do for me.
Is there a command to specify that the angle I provide should be measured relative to the last line?
Reply | Threaded
Open this post in threaded view
|

Re: Using the Line tool "Relative Angle" from the command line

LordOfBikes
Administrator
Welcome ststst!

The tool Relative Angle is not bound to the previous action, thus selecting an entity as reference for the angle is mandatory.

Because there is no selecting possible from command line, the Relative Angle tool is not implemented there. Thus it is not possible yet, you have to use the mouse and set the options for the relative angle line in the Tool Options toolbar.
investing less than half an hour into Search function can save hours or days of waiting for a solution