Posted by
behlV on
Apr 01, 2017; 5:06pm
URL: https://forum.librecad.org/GSoC-17-LibreCAD-tp5714756p5714765.html
Hi ail,
I had some discussion with ries and gaganjyot regarding the project and I'll be continuing with the javascript plugin interface project.
Having a bit thinking and brainstorming on this project, I understand that we need to create an interface to LibreCAD that will expose LibreCAD functionalities to outside users via JSON.
Reading gaganjyot's blog
http://gaganjyot.com/CAD_Plugin_interface I get a better idea,
Reasons I realise the need of this project,
1) People will be able to write plugins in their favourite language.
2) People will be able to create JSON based macros to perform repetitive tasks.
3) People will be able to create micro-programs that will generate JSON inputs for the LibreCAD program.
4) I've used FreeCAD too much for my designs in college and hence we might be able to build an interactive command prompt just like freeCAD has one for LibreCAD.
I think the whole project could be split into smaller milestones,
1) integrating librecad into a webserver module that will be able to accept http requests.
2) Create an interface to the LibreCAD Kernel to be executed by JSON Parser being developed in point 3.
3) Creating custom JSON Command parser so as to parse the commands in the JSON Request and call the specific functionality from the LibreCAD interface developed in point 2.
I am looking something towards
http://pistache.io/ for creating the web server.
https://github.com/nlohmann/json for JSON Parsing.
I'll be writing the proposal today and uploading it finally tomorrow.
Any thoughts/ideas on above approach would be helpful for making the proposal better.