PDA

View Full Version : Getting a GRIP on selection sets....



mjsregister
2004-06-04, 06:18 PM
I have some objects with XData attached. When you GRIPEDIT it I want an event to occur.

I've gotten this far by catching the BeginCommand and checking to see if "GRIP" is contained in the CommandName...

If I use acSelectPrevious to add it to the selection set, it works most of the time.... Every once in a while I get a recently placed object of the same type with the same XData.

I do set everything to Nothing when I'm done so there should not be any residual variables set.

How do I tell VBA to use the object that is currently selected with a hot grip?


Thanks.
Matthew

RobertB
2004-06-04, 06:24 PM
Do you delete the named selection set at the end of the prior run (or empty it 1st in the current run)?

mjsregister
2004-06-04, 07:51 PM
Yep... Mom always taught me to clean up after myself....

RobertB
2004-06-04, 07:55 PM
Rats. That was the easy answer. Grips have been a black hole to the object model.