Found in 1 comment on Hacker News
cjdaly · 2021-10-19 · Original thread
Sketchup has a Ruby API. This book is good if you can find a copy:

https://www.amazon.com/Automatic-SketchUp-Creating-Models-Ru...

Fresh book recommendations delivered straight to your inbox every Thursday.