Message 1 of 6
Selection Set Error

Not applicable
08-19-2005
02:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm not sure why this error exists, any help much appreciated!
[code]
Option Explicit
Public Function CreateSelectionSet(Optional ssName As String = "ss") As AcadSelectionSet
Dim ss As AcadSelectionSet
On Error Resume Next
Set ss = ThisDrawing.SelectionSets(ssName)
ss.Select acSelectionSetAll
ThisDrawing.Wblock strQueryName ss ; compile error, expected end of statement
If Err Then Set ss = ThisDrawing.SelectionSets.Add(ssName)
ss.Clear
Set CreateSelectionSet = ss
End Function
[/code]
Thanks in advance
Rob
[code]
Option Explicit
Public Function CreateSelectionSet(Optional ssName As String = "ss") As AcadSelectionSet
Dim ss As AcadSelectionSet
On Error Resume Next
Set ss = ThisDrawing.SelectionSets(ssName)
ss.Select acSelectionSetAll
ThisDrawing.Wblock strQueryName ss ; compile error, expected end of statement
If Err Then Set ss = ThisDrawing.SelectionSets.Add(ssName)
ss.Clear
Set CreateSelectionSet = ss
End Function
[/code]
Thanks in advance
Rob