https://sketchupfordesign.com/tutorials/scripting/coding-your-first-sketchup-extension/
Coding Your First SketchUp Extension