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 2Message :
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.firstSketchup will zoom to the selected object.
I've updated the GGroups docs
-
Ok !! Thanks to both of you (Soory for the translation !!)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better đź’—
Register LoginAdvertisement