I have just started learning and using the Ruby Console in SU 17 via http://developer.sketchup.com/en/content/new-ruby. I am following the tutorial exactly and also copy and paste the example however I consistently get an error when trying to reference the active model.
The code snippet and error is:
point1 = [0,0,0] [0, 0, 0] point2 = [100,100,100] [100, 100, 100] model = Sketchup.active_model #<Sketchup::Model:0x0000603daf4ba8>
I have rebooted my PC, reinstalled SU, both typed and copy/paste code into the Ruby console and still get the same error. I have also opened different models in SU as well.
Obviously I am missing something but unsure what it is.
If someone could point me in the right direction that would be fantastic.