https://wiki.librecad.org/index.php?title=LibreCAD_3_-_Plugin_creation&feed=atom&action=historyLibreCAD 3 - Plugin creation - Revision history2024-03-28T18:40:15ZRevision history for this page on the wikiMediaWiki 1.22.5https://wiki.librecad.org/index.php?title=LibreCAD_3_-_Plugin_creation&diff=2354&oldid=prevFeragon: Creation of rectangle plugin2017-07-26T17:05:35Z<p>Creation of rectangle plugin</p>
<a href="https://wiki.librecad.org/index.php?title=LibreCAD_3_-_Plugin_creation&diff=2354&oldid=2353">Show changes</a>Feragonhttps://wiki.librecad.org/index.php?title=LibreCAD_3_-_Plugin_creation&diff=2353&oldid=prevFeragon: Page creation2017-07-26T08:38:27Z<p>Page creation</p>
<p><b>New page</b></p><div>This is a quick guide on how to create a LibreCAD 3 plugin with the example of the rectangle plugin.<br />
<br />
== Plugin executions mode ==<br />
<br />
=== Plugin in GUI mode ===<br />
<br />
In this mode, the LC_interface variable is set to "gui".<br />
You can :<br />
* Modify GUI (create toolbar, add buttons, ...)<br />
* Manage multiple documents<br />
* Manage interactions with custom entities<br />
* Create functions that can be used outside the plugin<br />
<br />
=== Quick script (GUI) ===<br />
<br />
In this mode, the LC_interface is not set (equals to nil).<br />
<br />
You can:<br />
* Manage the active document (given by the document variable)<br />
* Manage interactions with custom entity<br />
<br />
=== Plugin in command line mode ===<br />
<br />
In this mode, the LC_interface is set to "cli".<br />
<br />
You can:<br />
* Manage one document (given by the document variable)<br />
* Create function that can be used in the main script</div>Feragon