LibreCAD / LibreCAD

LibreCAD is a cross-platform 2D CAD program written in C++17. It can read DXF/DWG files and can write DXF/PDF/SVG files. It supports point/line/circle/ellipse/parabola/spline primitives. The user interface is highly customizable, and has dozens of translations.
http://librecad.org/
Other
4.48k stars 1.01k forks source link

command line enhancement #1035

Closed WolfgangFahl closed 6 years ago

WolfgangFahl commented 6 years ago

Expected behavior

pl (0,0 5000,0 5000,1300 0,1300) should work

Observed behavior

pl interactively asks for parameters

Steps to reproduce or sample file

https://wiki.librecad.org/index.php?title=Starting_to_draw

Operating System and LibreCAD version info

Mac OS High Sierra / 2.1.3

lordofbikes commented 6 years ago

Using spaces to separate multiple commands doesn't work, because SPACE was implemented for AutoCAD users, to react like ENTER (see #764). 2.1.3 already has the multiple command feature, see #907. Beside the options paste and file, shown in the #907 answer, you can also type the commands into the command line and push ENTER.

So the correct syntax for your command is: pl;0,0;5000,0;5000,1300;0,1300 or pl;0,0;5000,0;5000,1300;close and then ENTER to run all the commands

WolfgangFahl commented 6 years ago

Thank you for the feedback I tried this out and couldn't get it to work on my 2.1.3 version on MacOS. I did a cut&paste of pl;0,0;5000,0;5000,1300;close into the command line hitting enter and got no visible result but also no error message. Doing the step by step approach works.

mespadoto commented 3 years ago

Sorry to bump an old thread, but I have what appears to be the same scenario as @WolfgangFahl, using LibreCAD 2.1.3 on macOS High Sierra (10.13.6): nothing happens when pasting full commands like rec;0,0;300,100;close to the command line. Also, the drop down menu at the right corner of the command line text box (as described in #907) seems to be missing.