Regain focus to select items

Regain focus to select items

Anonymous
Not applicable
258 Views
0 Replies
Message 1 of 1

Regain focus to select items

Anonymous
Not applicable
I am current using a module to call a class module where I select several items, right-click to complete and pass the objectcollection back to the module. All works well if I fire the module from the code window, and I can select the items as desired.

However when I fire the same macro with a hot key or from the tools menu it appears that inventor is not really getting the focus. The mouse icon changes as expected, but I can't select anything so it basically hangs up. I tried putting thisapplication.activedocument.activate at the beginning of the module but no luck.

Any ideas?
Thanks in advance.

Kurt


From the module:

Public Sub xKeyHold101()
Dim oMultiSelect As New clsMultiSelect
Dim oObjCollection As ObjectCollection
Set oObjCollection = oMultiSelect.MultiSelect(kAssemblyOccurrenceFilter)
End Sub
0 Likes
259 Views
0 Replies
Replies (0)