Hi Guys,
Need to zoom in and out based on view center point.
instead of scrolling mouse in and out.
user will use function keys for zoom in out.
for example: for zoom in user will click on function key F2 out user will click on function key F3.
i am using the keyin "zoom in" but it is asking select point to zoom about.
How can i zoom in and out without selecting point ?
Unknown said:How can I zoom in and out without selecting point ?
That's not a programming question. Please post to the MicroStation Forum.
You can zoom out without picking a point; MicroStation keeps the existing view centre. Zooming in requires a point because your new view extents could be anywhere in the current view frame.
Regards, Jon Summers LA Solutions
In MDL you can peruse several ways to achieve the zoom effect.
One strategy would be to obtain view range (origin, corner) with mdlView_getParameters(), scale these points agaist a midpoint between them and set the new view extent with mdlView_setArea().
You may also use mdlView_zoom() for very simple zooms.
Cheers,
/Chris Z.
Answer Verified By: Daniel Christopher