What would be a good example script or scripts to study before starting to program a new Tool extension?
I'd like it to be compatible with versions of SU at least back to 2014 (Ruby 2) and perhaps to v8.
And I'd like it to follow 'best current practice' (or at least 'good current practice').
I do know some of the basics, like how to set up an Extension loader. And to wrap my code in a uniquely named Module.
And I have a couple of published plugins in this site's Plugins store. But they were merely updated to cope with Ruby 2, and probably are no longer current best practice.
Years ago, I started from the then Example linetool.rb, but even the most recent one from the Extension Warehouse doesn't seem to include some of the newer features, such as pdf or svg icons for Su2016.
I've looked at Angular Dimension from Steve Baumgartner, which does include them, so perhaps I can use that as a starting point for that aspect.
But his example installs to the Plugins folder and looks for support files there. For development, at least, I want to be able to run it from an external folder, to share with different versions of SU for testing purposes. What would example code to do that look like?
Is there a 'skeleton' tool plugin example that would have all the basics in it, including the basic picking of input points, which isn't trivial to set up from scratch?
And something with a good example of the Tools 'draw' method for displaying temporary geometry during the use of the tool. I have struggled (and only partially succeeded) in getting a simple version of that to work.
Most of the supplied su_xxxx.rb plugin loaders have scrambled code in their support folder.
If there isn't such a skeleton (and I haven't been able to find one yet, though I've seen pieces of what such a thing might contain on this and the Sketchup Community forum), could one of the experienced SU team members or talented Ruby script writers suggest one, or point me to a few unscrambled Tool plugins they would recommend as good examples to follow?
The Ruby Learning Resources sticky post on this forum is still dated 2008, and even the latest topics in it seem to date back to 2011, so I haven't found them of much help in tackling some of the later developments, though the basics are still of course very relevant.
PS. Just looked again at the Learning Resources - there ARE later posts from earlier this year by Dan Rathbun, including Templates... but they are still empty.