Pick command issue

Pick command issue

fakeru
Advocate Advocate
411 Views
2 Replies
Message 1 of 3

Pick command issue

fakeru
Advocate
Advocate

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
0 Likes
412 Views
2 Replies
Replies (2)
Message 2 of 3

YuhanZhang
Autodesk
Autodesk

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.

0 Likes
Message 3 of 3

Tiffany_Hayden_
Collaborator
Collaborator

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

0 Likes