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

Pick command issue

So I noticed many times that when I run a Pick command in addins while in drawing environment, Inventor will stay like frozen for about 30sec or so, then the command fires up. Otherwise I can click immediately on the screen, and then the command fires up, that means 2 clicks, one to wake up Inventor, another to pick (select) something. But the users don't know they have to click 2 times...  

As an example:

oView = g_inventorApplication.CommandManager.Pick(SelectionFilterEnum.kDrawingViewFilter, "Select a view")

And it happens for other type of objects as well.

 

Is this a bug? Any solutions?

 

Thanks

Alexandru

 

Autodesk Inventor 2015 Certified Professional
YuhanZhang
in reply to: fakeru

Can you upload a simple addin project to reproduce the problem? I could not reproduce it here.



If this solves the problem please click ACCEPT SOLUTION so other people can find it easily.



Rocky Zhang
Inventor API PD
Manufacturing Solutions
Autodesk, Inc.

Tiffany_Hayden_
in reply to: fakeru

You might try this before you call your pick command. 

 

Public Declare Function SetFocusAPI Lib "user32.dll" Alias "SetFocus" (ByVal hwnd As Long) As Long

Tiffany Hayden
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature