TheSwamp

Code Red => .NET => Topic started by: Draftek on March 30, 2006, 09:19:45 AM

Title: current selected object
Post by: Draftek on March 30, 2006, 09:19:45 AM
I'm creating a context menu for some objects. I used the Editor.SelectedLast() method as a selection set but this is not returning what I thought it should.

Does anyone know how to caputure the currently selected item?

Thanks
Title: Re: current selected object
Post by: Chuck Gabriel on March 30, 2006, 12:16:47 PM
I'm not sure about .NET, but the COM object model provides access to pre-selected objects via the PickfirstSelectionSet property of the Document object.  Maybe that will help you get pointed in the right direction.
Title: Re: current selected object
Post by: Draftek on March 30, 2006, 01:18:07 PM
Thanks, Chuck.

I'll take a look at that. It sounds like just the thing...
Title: Re: current selected object
Post by: Alexander Rivilis on March 30, 2006, 04:25:29 PM
Or Editor.SelectPrevious or Editor.SelectImplied  :)
Title: Re: current selected object
Post by: Draftek on March 31, 2006, 07:34:30 AM
Thanks, I'll try out both.