Selection Count
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Selection Count

 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA
Author Message
Ledi
Guest





Posted: Mon Jan 10, 2005 9:06 pm    Post subject: Selection Count Reply with quote

Hi!

I'm using 2005 and i have a small problem.

Private Sub AcadDocument_SelectionChanged()
MsgBox "Count: " & ThisDrawing.ActiveSelectionSet.Count
End Sub

if i select object it counts 1, if I press ESC so that no object is selected it still counts 1. Is there a way to clear this so i can distinct when objects are selected and when there is no obj. selected?

Back to top
Alfred NESWADBA
Guest





Posted: Tue Jan 11, 2005 7:01 am    Post subject: Re: Selection Count Reply with quote

In article <19073758.1105373213388.JavaMail.jive@jiveforum2.autodesk.com>, nospam@address.withheld says...
Quote:
Hi!

I'm using 2005 and i have a small problem.

Private Sub AcadDocument_SelectionChanged()
MsgBox "Count: " & ThisDrawing.ActiveSelectionSet.Count
End Sub

if i select object it counts 1, if I press ESC so that no object is selected it still counts 1. Is there a way to clear this so i can distinct when objects are selected and when there is no obj. selected?

hi,


try instead of 'ActiveSelectionSet' the 'PickFirstSelectionSet', the pickfirstselection is what the user see as gripped, the activeselectionset may
be any other selection set.

- alfred -
Back to top
Ledi
Guest





Posted: Tue Jan 11, 2005 10:06 am    Post subject: Re: Selection Count Reply with quote

yes, this is exactly what i need, thanks

Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Contact Us
Powered by phpBB