Hi
I just looked at
https://wiki.librecad.org/index.php/LibreCAD_Plugin_Developmentthis is nice but the plugin API does not seem able to interact with the commandline box but directly with the document.
so, I have to recreate the command parser and call the drawing methods directly...
Another problem is that the plugin is designed to be executed by the user as a procedure. it is not made to wait for incoming orders.
in fact it is quite odd to have a command line that is not designed to be connected to some data stream that could be a file, a terminal or a command generator. At first, I was expecting librecad would read stdin the very same way it reads the command line box.