selectionset sequence problem in Autocad2008

selectionset sequence problem in Autocad2008

Anonymous
Not applicable
324 Views
1 Reply
Message 1 of 2

selectionset sequence problem in Autocad2008

Anonymous
Not applicable
Hello,
Dose anybody know the selction sequece problem in Autocad 2008 ?
I used same VBA code with 2006 and selected object in autocad2008 using selectonScreen method.
But the object sequece in selection set is seem to 'Random' .
Can you help me ?

Dim groupCode As Variant, dataCode As Variant
Dim gpCode(0 To 0) As Integer
Dim dataValue(0 To 0) As Variant
Dim sALL As AcadSelectionSet

Set sALL = ThisDrawing.SelectionSets.Add("tempa")
sALL.Clear

gpCode(0) = 0
dataValue(0) = "Line"
groupCode = gpCode
sALL.SelectOnScreen groupCode, dataCode ' ==> Here I selected using Fence mode in autocad
For UU = 1 To sALL.Count
sALL.Item(UU - 1).Highlight True '==> but the item sequece is not match my selection sequence in autocad
Next
0 Likes
325 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

The DWG file structure orders
by when the elements were created.


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Hello,
Dose anybody know the selction sequece problem in Autocad 2008 ? I used same
VBA code with 2006 and selected object in autocad2008 using selectonScreen
method. But the object sequece in selection set is seem to 'Random' . Can you
help me ? Dim groupCode As Variant, dataCode As Variant Dim gpCode(0 To 0) As
Integer Dim dataValue(0 To 0) As Variant Dim sALL As AcadSelectionSet Set sALL
= ThisDrawing.SelectionSets.Add("tempa") sALL.Clear gpCode(0) = 0 dataValue(0)
= "Line" groupCode = gpCode sALL.SelectOnScreen groupCode, dataCode ' ==>
Here I selected using Fence mode in autocad For UU = 1 To sALL.Count
sALL.Item(UU - 1).Highlight True '==> but the item sequece is not match my
selection sequence in autocad Next
0 Likes