Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Help getting started with plugin interface

#1
I would like to make a plugin, but am having trouble getting started.  I've worked with C++ and Python, but am new to Qt.

I've read the plugin documentation at (https://robodk.com/doc/en/PlugIns/index.html) and installed Qt.  I've downloaded the PluginExample.pro file from GitHub and opened it with Qt.  My question is, does  PluginExample.pro need to be located somewhere specific in my file system?  Same question for all the header files referenced in  PluginExample.pro.  I found all the header and cpp files referenced and placed them in the project folders, but I still get the "no rule to make target" error when I try to run  PluginExample.pro.

Could someone share an example of their project with the file structure as well, or provide an alternative example?

Lastly, once I am able to get started making the plugin, one feature I want to have is the ability for the user to select several curves on an object, have those curves added to a list, and have reference frames made from 3 points extracted from each curve.  Any code snippets for how to enable curve selection for the user would be much appreciated.
#2
If you are using Windows, you should compile your plugin using Qt version 5.15. Also, when the compilation succeeds, you'll obtain a DLL file that you should open with RoboDK. Simply drag and drop this DLL to RoboDK to load your plugin.

You can also use the PLUGINLOAD command with your Qt settings to automatically load and debug your plugin. You can find more information in the Installation Requirements section of the plugin interface documentation:
https://robodk.com/doc/en/PlugIns/index.html
#3
(05-15-2024, 03:34 PM)Albert Wrote: If you are using Windows, you should compile your plugin using Qt version 5.15. Also, when the compilation succeeds, you'll obtain a DLL file that you should open with RoboDK. Simply drag and drop this DLL to RoboDK to load your plugin.

You can also use the PLUGINLOAD command with your Qt settings to automatically load and debug your plugin. You can find more information in the Installation Requirements section of the plugin interface documentation:
https://robodk.com/doc/en/PlugIns/index.html

Albert, I’m trying to run the example plugin provided by RoboDK, but the Qt project is not finding the files it needs.  I’m asking where those files need to be.

How do I make curves selectable for the user, the same way they’re selectable for the measurement tool?  Either from the plugin interface or the Python API.
#4
When creating your custom plugin on Windows, I recommend you to use these paths (default settings):
  • RoboDK software installed in C:/RoboDK/, you'll find Qt binaries in the bin subfolder
  • Qt installed in C:/Qt/ (Qt default setting). Make sure you use Qt 5.15.
  • The DLL of your plugin should be place in C:/RoboDK/bin/plugins/
All these paths can be changed though.
  




Users browsing this thread:
1 Guest(s)