Message 1 of 3

Not applicable
08-16-2019
03:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Here is the code i have so far. I want to select an object and see the type of the selected object and then remove the handler. Any help with this code???
Class TestShared Shared WithEvents oUIEvents As UserInputEvents Sub main oUIEvents = ThisApplication.CommandManager.UserInputEvents AddHandler oUIEvents.OnSelect, AddressOf oUIEvents_OnSelect End Sub Sub oUIEvents_OnSelect(JustSelectedEntities As ObjectsEnumerator, MoreSelectedEntities As ObjectCollection, SelectionDevice As SelectionDeviceEnum, ModelPosition As Point, ViewPosition As Point2d, View As Iventor.View ) MessageBox.Show(JustSelectedEntities.Type) 'RemoveHandler oUIEvents.OnSelect, AddressOf oUIEvents_OnSelect oUIEvents = Nothing End Sub End Class
Solved! Go to Solution.