Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
434 Views, 2 Replies

Window Zoom Process in Inventor

Dear Friends,

 

We wants to zoom in on a Particular area using window selection in Inventor

 

Dim oDef As ButtonDefinition = ThisApplication.CommandManager.ControlDefinitions.Item("AppZoomWindowCmd")

oDef.Execute

 

After this,it asks the user for window selection.

But i need set window selection point within programming, So is there any API or Function handle this process Please help me to solve this problem. 

 

Please note that we need to zoom particular edge of constraint.

You have any other idea about zoom process share your idea.

 

Regards and Thanks,

    Vicky.

 

GeorgK
in reply to: Anonymous

Hello Vicky,

 

you can use

AppZoomSelectCmd     'Zooms to selected entities

Georg

Anonymous
in reply to: GeorgK

Dear Betreff,

      Thanks for your quick reply.

      Sorry! Please note that we have already used is function like as below code

 

Coding:

Dim oDoc=ThisApplication.ActiveDocument

oDoc.SelectSet.Select(oEdge)

Dim oDef As ButtonDefinition = ThisApplication.CommandManager.ControlDefinitions.Item("AppZoomSelectCmd")

Def.Execute()

oDoc.SelectSet.Remove(oEdge)

 

          But some of the edges with shortest distance values are not Zoom in Properly when using "AppZoomSelectCmd".Is there any possibilities to Zoom in the edge with shortest length.Please help me for solving this problem.

          We will wait for your reply.

 

With regards,

    Vicky.