Hello!
I am trying to get all selected objects in autocad window.
Is there some way to get this.
I want to have this as separate function, without <commandmethod("xxx")> _,
something like.
Public Function GetSelectedObjects () as ObjectIdCollection
'Pseudocode
return Autocad.GetSelectedObjects.ToObjIds
end function
Best regards,
Danijel
Solved! Go to Solution.
Solved by kdub_nz. Go to Solution.
Have a look at :-
Using the pickfirst selection from an AutoCAD .NET application
http://through-the-interface.typepad.com/through_the_interface/2006/09/using_the_pickf.html
Adding to the AutoCAD pickfirst set with .NET
http://through-the-interface.typepad.com/through_the_interface/2007/01/adding_to_the_a.html
// Called Kerry in my other life.
Everything will work just as you expect it to, unless your expectations are incorrect.
class keyThumper<T> : Lazy<T>; another Swamper
Be sure to read Alberts Comments in that first link
ie :
>> The code above could be simplified by using Editor.GetSelection(). <<
// Called Kerry in my other life.
Everything will work just as you expect it to, unless your expectations are incorrect.
class keyThumper<T> : Lazy<T>; another Swamper
... and just for fun I searched my NNTP archive
for posts containing 'GetSelection' by Tony T
There are a few hits there
.... AND I did it on my laptop without an internet connection .... but we won't go there 🙂
// Called Kerry in my other life.
Everything will work just as you expect it to, unless your expectations are incorrect.
class keyThumper<T> : Lazy<T>; another Swamper
Can't find what you're looking for? Ask the community or share your knowledge.