.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get All previosly selected objects

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
danny.boy.1
643 Views, 4 Replies

Get All previosly selected objects

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

4 REPLIES 4
Message 2 of 5
kdub_nz
in reply to: danny.boy.1

 

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

Message 3 of 5
kdub_nz
in reply to: kdub_nz

 

 

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

Message 4 of 5
kdub_nz
in reply to: kdub_nz

 

 

... 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

Message 5 of 5
danny.boy.1
in reply to: danny.boy.1

Thank you a lot KerryBrown

 

I will try this, seems it will help me :-)!

 

Best regards

Danijel

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost