on select event

on select event

marcin_otreba
Contributor Contributor
589 Views
1 Reply
Message 1 of 2

on select event

marcin_otreba
Contributor
Contributor

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 ?

0 Likes
Accepted solutions (1)
590 Views
1 Reply
Reply (1)
Message 2 of 2

marcin_otreba
Contributor
Contributor
Accepted solution

nevermind i got it..

 

this is the code:

 

Private Sub OnDocumentSelectedEvent() Handles oUserInputEvents.OnSelect

 

 

End Sub

0 Likes