Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Zoom Factor Details

Status
Not open for further replies.

Maddy02

Mechanical
Feb 14, 2013
114
0
0
IN
Hi,

Would you elaborate on ZoomFactor of a viewer.
like On what basis it get's calculated blabla...

Regards,
Maddy
 
Replies continue below

Recommended for you

Hi Maddy02,

I am not sure I understood your question... Would you care to elaborate?



[small]
CATIA v5 — user & trainer
ANSYS — user (beginner)
[/small]
 
Hi,

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.

Regards,
Maddy
 
Status
Not open for further replies.
Back
Top