Message 1 of 2
selectionset sequence problem in Autocad2008

Not applicable
02-11-2009
11:38 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
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