Message 1 of 1
Regain focus to select items

Not applicable
04-08-2009
03:12 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
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