Re: I need detailed documentation on developing LibreCAD plugins.
Posted by
LordOfBikes on
Aug 07, 2024; 8:24pm
URL: https://forum.librecad.org/I-need-detailed-documentation-on-developing-LibreCAD-plugins-tp5725201p5725206.html
This is LibreCAD, not AutoCAD, so you can't compare them or their plugin interfaces.
All you can do with LibreCAD's plugin interface is contained in
https://github.com/LibreCAD/LibreCAD/tree/master/librecad/src/plugins.
There you'll find
document_interface.h and
qc_plugininterface.h, they declare the plugins possibilities.
Have a look into the classes there to see what the interface provides.
Basically it is about requesting entities, selected or all, to iterate and delete or modify them, or add new entities.
So it is rather rudimentary compared to AutoCAD.
The existing plugins show various use cases and I think most of the possibilities of LibreCAD's plugin interface. That's why we recommend to study the existing plugins.
You have to take what LibreCAD provides, not what you suspect from AutoCAD.
As I already proposed, when you clarify your plans, we can estimate if you can realize them or recommend an existing plugin, which has similar functionality.
Armin
investing less than half an hour into Search function can save hours or days of waiting for a solution