- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
i have problem wit user interaction onselect event when i put :
Private WithEvents oUserInputEvents As UserInputEvents
oUserInputEvents = g_inventorApplication.CommandManager.UserInputEvents
Private Sub oUserInputEvents_OnSelect(JustSelectedEntities As ObjectsEnumerator, _
MoreSelectedEntities As ObjectCollection, _
SelectionDevice As SelectionDeviceEnum, _
ModelPosition As Point, ViewPosition As Point2d, _
View As Inventor.View) Handles oUserInputEvents.OnSelect
in my code it gives me error:
Error 1 Method 'Private Sub oUserInputEvents_OnSelect(JustSelectedEntities As Inventor.ObjectsEnumerator, MoreSelectedEntities As Inventor.ObjectCollection, SelectionDevice As Inventor.SelectionDeviceEnum, ModelPosition As Inventor.Point, ViewPosition As Inventor.Point2d, View As Inventor.View)' cannot handle event 'Public Event OnSelect(JustSelectedEntities As Inventor.ObjectsEnumerator, ByRef MoreSelectedEntities As Inventor.ObjectCollection, SelectionDevice As Inventor.SelectionDeviceEnum, ModelPosition As Inventor.Point, ViewPosition As Inventor.Point2d, View As Inventor.View)' because they do not have a compatible signature.
anyone knows what i do wrong ?
Solved! Go to Solution.