Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download
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 !!)
Advertisement