Thanks for your reply,
I was working on zooming in and out through macro.
When we go through the automation documentation (CATIA.ActiveWindow.ActiveViewer.Viewpoint2d.Zoom)
This is what we will get. Zoom( ) As double
Returns or sets the zoom factor associated with the viewpoint.
Example:
This example retrieves in ZoomFactor the zoom factor associated with the NiceViewpoint viewpoint, tests if it is less than 1, and if so, sets it to one and applies it to the viewpoint.
ZoomFactor = NiceViewpoint.Zoom
If ZoomFactor < 1 Then
ZoomFactor = 1
NiceViewpoint.Zoom(ZoomFactor)
End If
I would like somebody to put his point of on this about what is this zoomfactor and how this gets computed.
For ex: putorigin method makes the object to come in middle of screen but the zooming ratio will be as done by the user.