Send Escape keypress to Inventor in iLogic rule

Send Escape keypress to Inventor in iLogic rule

checkcheck_master
Advocate Advocate
889 Views
3 Replies
Message 1 of 4

Send Escape keypress to Inventor in iLogic rule

checkcheck_master
Advocate
Advocate

I would like to know how to give an 'Escape' sendkey in an iLogic Rule.

I've searched quite a bit but can't find anything that works.

 

I'm selecting the TopNode in a rule and then 

Call ThisApplication.CommandManager.ControlDefinitions.Item("AppFindInBrowserCtxCmd").Execute

When the rule is done I would like to deselect the TopNode by sending an Escape key.

0 Likes
Accepted solutions (1)
890 Views
3 Replies
Replies (3)
Message 2 of 4

Ralf_Krieg
Advisor
Advisor
Accepted solution

Hello

 

Try to use code below. You don't need to select the topnode before run. The "AppFindInBrowserCtxCmd" would select the browsernode corresponding to the selected object in graphic window.

ThisDoc.Document.BrowserPanes.ActivePane.TopNode.DoSelect
ThisApplication.CommandManager.ControlDefinitions.Item("AppZoomSelectCmd").Execute
ThisDoc.Document.SelectSet.Clear

 


R. Krieg
RKW Solutions
www.rkw-solutions.com
0 Likes
Message 3 of 4

checkcheck_master
Advocate
Advocate

Thanks for your reaction Krieg, I am gonna try.

0 Likes
Message 4 of 4

checkcheck_master
Advocate
Advocate

Works like a charm Krieg, thanks again!

ThisDoc.Document.BrowserPanes.ActivePane.TopNode.DoSelect
ThisApplication.CommandManager.ControlDefinitions.Item("AppFindInBrowserCtxCmd").Execute
ThisDoc.Document.SelectSet.Clear

 

May I ask you to look at one of my posts, you may not have seen it.
In short:

Is it possible to have a rule that runs in the background and performs an action when the user holds down the left mouse button for an extended period of time, say 500 milliseconds.
Assuming and as far as I can determine that such a longer left mouse click has no other function within Inventor.

https://forums.autodesk.com/t5/inventor-ilogic-api-vba-forum/set-pivot-point-to-center-screen/m-p/10...

0 Likes