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

Window Zoom Process in Inventor

Anonymous

Window Zoom Process in Inventor

Anonymous
Not applicable

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.

 

0 Likes
Reply
435 Views
2 Replies
Replies (2)

GeorgK
Advisor
Advisor

Hello Vicky,

 

you can use

AppZoomSelectCmd     'Zooms to selected entities

Georg

0 Likes

Anonymous
Not applicable

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.

 

 

0 Likes