Current ZoomFactor?
In VBA you can writedwg.ActiveViewport.ZoomCenter pt, dblZoomFactorWhere dwg=ActiveDocument,pt is a Icad.Point and dblZoomFactor is a number.You can get the current Center with Set pt = dwg.ActiveViewport.CenterBut how can you get the current ZoomFactor?
0
Comments
-
Try to use:(setq xxxx (getvar "zoomfactor))Then xxxx contains the zoom factor.Same way to do with "zoompercent"Svend
0 -
Thank's an sorry for the late answer.I thought you where right,now when I needed this again I found out this:"ZOOMFACTORControls the zoom factor when you roll the mouse wheel up or down. Higher numbers indicate more movement when you roll the mouse wheel."I thinkActivedocument.ActiveViewport.Heightcan be used.
0
This discussion has been closed.