Start interaction with preselection(Selectevents.AddToSelectedEntities...?)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
This one drives me nuts....
I'm writing a custom Flange tool with the need of edit the flanges created. I got pretty far, but in Editing mode I did not find a way, to change the edges of the existing Flange feature.
I found the method AddToSelecteEntities of the SelecEvents object, which works fine in the Onselect-Eventhandler. The documentation says , the Method takes an "object" as input... But as I try to add my Edge in this manner I always get an E_FAIL error. I see the Handler takes an Argument of type Obejctsenumerator but I did not find a way, to create such an Enumerator of an objectcolletion...
Can anyone give a hint for the correct usage of this method, or show, how to handle such case correctly?
Maybe I'm on a wrong way anyway... 😞
BR,
Daniel