| Author |
Message |
Ledi
Guest
|
Posted:
Mon Jan 10, 2005 9:06 pm Post subject:
Selection Count |
|
|
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 |
|
|
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 |
|
|
yes, this is exactly what i need, thanks
|
|
| Back to top |
|
 |
|
|
|
|