Zoom factor
-
Hi all !
In the default ruby API help, there is an information doesn't work.
In the view class, zoom method.I can't give a scale factor zoom to a view
Sketchup.active_model.active_view.zoom 2
Message :
Error; #<TypeError; (eval);91;in `zoom'; wrong argument type (expected Sketchup;;Entity)>
Is it a free SU problem ? Or an API problem ?
Thank you. -
I think you need a Float (i.e. 2.0) instead of an Integer.
-
or an entity (like a face):
model = Sketchup.active_model sel = model.selection # have something selected model.active_view.zoom sel.first
Sketchup will zoom to the selected object.
I've updated the GGroups docs
-
Ok !! Thanks to both of you (Soory for the translation !!)
Advertisement