- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I would like to make a command that has two "modes".
An "Adding" mode, when entities are selected other entities that share the same layers as the entities that were selected are added to the selection set.
And a "removing" mode, when entities are selected in this mode any entities on the same layers as the selected entities are removed from the selection set.
I tried to use event handlers for Editor.SelectionAdded and Editor.SelectionRemoved. But that became a nightmare of infinite event triggers. But even after solving that I couldn't figure out how to add to the selection set. I tried Editor.SetImpliedSelection but that never changed the selection set.
I've also tried using PromptSelectionOptions.KeywordInput event handlers. But that will only let you Add to the selection, not remove from it.
Any help would be greatly appreciated.
Solved! Go to Solution.