The API needs to be integrated in the command line and in the quick scriptĭialog. Managers will be required in C++ because actually these information are only This includes the function to get the selected layer and metadata. Some functionĬurrently defined in Lua would be moved to a C++ API accessible from the The solution here is to run each plugin on its own instance. It is currently impossible to read or write a file, and some plugins can make LibreCAD crash. The current implementation has some limits for security reasons. This proposal is also including drawing optimizations for LibreCAD, and a unitĭetailed project description Implementation of new plugins: įirst, the Lua script system needs to be improved. The same Lua code could be run in LibreCAD, or in command line or in a quick The plugins could also make operations on files, which would allow scripts to Here the script should handle the modification of the entity so it will That, individual lines can be modified, and it doesn’t look like a rectangleĪnymore. The plugins could create newĮntities types, and define custom interactions.įor example, the rectangle plugin is only adding 4 lines in the document. This project aims at improving this plugin system. Operations are difficult to program, and won’t be intuitive for the user. The plugins can only add primitive entities to a document, others Offer a GUI version with preview of what could be done before with the LibreCADĬommand line. LibreCAD 3 Lua plugin system Brief project summary ĭuring the GSoC 2016, I began a simple implementation of Lua plugins.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |