Author Topic: current selected object  (Read 3826 times)

0 Members and 1 Guest are viewing this topic.

Draftek

  • Guest
current selected object
« 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

Chuck Gabriel

  • Guest
Re: current selected object
« Reply #1 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.

Draftek

  • Guest
Re: current selected object
« Reply #2 on: March 30, 2006, 01:18:07 PM »
Thanks, Chuck.

I'll take a look at that. It sounds like just the thing...

Alexander Rivilis

  • Bull Frog
  • Posts: 214
  • Programmer from Kyiv (Ukraine)
Re: current selected object
« Reply #3 on: March 30, 2006, 04:25:29 PM »
Or Editor.SelectPrevious or Editor.SelectImplied  :)

Draftek

  • Guest
Re: current selected object
« Reply #4 on: March 31, 2006, 07:34:30 AM »
Thanks, I'll try out both.