To use this code you must have a wicked application : https://github.com/turanszkij/WickedEngine
And you need the sketchup api sdk : https://extensions.sketchup.com/sketchup-sdk
You can use this code in all projects without any restrictions.