- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.