Unselecting elements from selection set

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to develop an environment where I can 'filter' user selections. I don't seem to see anything in Revit that lets me filter a view such that some objects are editable or selectable and others are not. If there is such a thing, then that might work for me.
As an alternative, what I would like to do is react to changes in the selection set and unselect things that I don't want selected.
(e.g. unselect anything that is not a room boundary).
I currently have a nonmodal dialog box that is showing me a list of selected elements, which is working fine, so I can list and identify the elements I want to deal with.
I have found some fairly old building coder posts referring to this
2009/02/selection-questions.html#1247912
which refers to the Elements property of a selection object. I don't see this property, but I do see GetElementIds, and SetElementIds, etc.
I wonder if the object model has changes since 2009 and there is now a different way to do this, or if I am somehow looking at the wrong objects.
Does anyone have a sample of how to remove an object from the current selection?
Thanks in advance...
Abba Lustgarten