filtering the selection set object

filtering the selection set object

Anonymous
Not applicable
368 Views
3 Replies
Message 1 of 4

filtering the selection set object

Anonymous
Not applicable
Hi, I have question in filtering the selection set object.

What is want is, i have a selectionset (selecton screen type) objects in that i have to filter first line, then from that collection again i want to filter the horizontal and vertical lines and put those two different items in different arrays? is it possible ? i have tried a code solme thing like this,


For i = 0 To ss.Count - 1
If TypeOf ss.Item(i) Is AcadLine Then
Set lin = ss.Item(i)
ang = lin.Angle
If ang < 3.25 Then
ADD TO AN ARRAY
Else
ADD TO AN ARRAY
End If
End If


Thanks in advance.

Arun
0 Likes
369 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable

sounds like it would work

are you saying it didn't?

 

mark


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Hi,
I have question in filtering the selection set object. What is want is, i have
a selectionset (selecton screen type) objects in that i have to filter first
line, then from that collection again i want to filter the horizontal and
vertical lines and put those two different items in different arrays? is it
possible ? i have tried a code solme thing like this, For i = 0 To ss.Count -
1 If TypeOf ss.Item(i) Is AcadLine Then Set lin = ss.Item(i) ang = lin.Angle
If ang < 3.25 Then ADD TO AN ARRAY Else ADD TO AN ARRAY End
If End If Thanks in advance. Arun
0 Likes
Message 3 of 4

Anonymous
Not applicable
the array what i added, return nothing . so, If possible can you update the code? and reply me. Thanks in advance.
0 Likes
Message 4 of 4

Anonymous
Not applicable
i got the answer, it is working fine now, thnx MP
0 Likes