I am using Windows 10 with LibreCAD 2.1.3.
Not sure I understand if Lua scripting is available for this . I googled the issue but could not find an answer.
I found this link https://wiki.librecad.org/index.php/LibreCAD_3_-_Lua_Scripting
It says "To create entities within a document there is a builder object that allows to add new entities or append selected entities into the build. From there you can apply steps to process the entities. After each step the result of the step is passed along to the next step.". However I am not sure I know how to create/use this "builder object"