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

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

Anonymous
Not applicable
333 Views
0 Replies
Message 1 of 1

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

Anonymous
Not applicable

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

0 Likes
334 Views
0 Replies
Replies (0)