I need user input in the actions.
Posted by
emanuel on
Feb 07, 2025; 11:16am
URL: https://forum.librecad.org/I-need-user-input-in-the-actions-tp5726401.html
At the moment I have a workaround:
https://github.com/emanuel4you/LibreCAD/blob/developer/librecad/src/lib/scripting/rs_lsp_inputhandle.cppbut I can't get any further with that here:
https://github.com/emanuel4you/LibreCAD/blob/developer/librecad/src/lib/scripting/rs_scriptingapi.cpp#L381https://github.com/emanuel4you/LibreCAD/blob/developer/librecad/src/lib/scripting/rs_scriptingapi.cpp#L460In both commands the user must have the option of entering the results via the command line.
(getdistance <-- "100" return)
This works with the existing actions but only with points, as far as I can see.
Everything else is entered via dialogs. (text, mtext, rotate, attributes, ...)
Now I'm thinking about how and where I can best incorporate this.
While searching, I also came across the "rotate" command. I can't seem to get to grips with it.
I couldn't enter an angle at all. Here, too, I would like the option of simply entering the angle in the command line.
I've drawn countless floor plans in my life and suffered physical injuries as a result (hands, spine).
Something like this is essential for effective drawing (being able to avoid clicks and dialogs wherever possible for the sake of accessibility).
What I noticed: I modified a polyline (arc).
It then had a hole between the arc and the last segment.