@I_Alain_I wrote:
Hi
I try to run this Code Snippet.
model=Sketchup.active_model
eye=model.active_view.camera.eye
ss=model.selection[0]
distance=eye.distance(ss.bounds.center)When I copy&paste it into the Console then I get the distance between the Camera Eye to the Center of the Boundingbox of the selection.
But when I paste this code into the "Ruby Code Editor" an click on "run" then I get this Error in the Console:Error: #
C:/Users/blablabla/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/as_rubyeditor/as_rubyeditor.rb:270:in=='
!='
C:/Users/blablabla/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/as_rubyeditor/as_rubyeditor.rb:270:in
C:/Users/blablabla/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/as_rubyeditor/as_rubyeditor.rb:270:inblock in initialize'
call'
SketchUp:1:inThere must be some basic understanding I missed.
Does anybody know what I do wrong ?Kind regards
Alain
Posts: 3
Participants: 2