Re: like autolisp for autocad what is it for librecad?
Posted by R. van Twisk on Mar 27, 2015; 10:23am
URL: https://forum.librecad.org/like-autolisp-for-autocad-what-is-it-for-librecad-tp5710999p5711254.html
Joe,
without knowing your exact requirements but knowing lua I am pretty sure COGO functions can be written in Lua.
What we don't have in LibreCAD 2 is a scripting language, but we do support plugins. If you need a full fledged COGO tool this year, then LibreCAD + plugin is the way to go.
If you really need a scripting language for COGO and/or you need your own UI that can visualise stuff but can export to DXF then I think this could be done with LibreCAD 3 code. What Lua in LibreCAD 3 currently does is operate on entities in the kernel, mostly creation is tested but it should be easy to include modification. Lua in LibreCAD 3 cannot present menu's/graphics and dialog boxes yet. If you are planning to use LibreCAD 3 kernel do be prepared to accept changes to API's once a while and be prepared to understand that LibreCAD 3 doesn't have a working UI with mouse cursor capabilities etc... But soon I will be adding this. We can zoom and select.
Hope that helps.