Message 1 of 2
Simple selection,but dont work
Not applicable
11-23-2003
09:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello form Italy.
I've make a simple routine for make a new selection
and erase them. The first selection work fine but in
the second the VBA get a error -2147417848 and AutoCAD crash!!!
Please why?
Private Sub CommandButton1_Click()
Dim SelObj As AcadSelectionSet
'INIZIO
UserForm1.Hide
'SELEZIONE
For Each SelObj In ThisDrawing.SelectionSets
SelObj.Delete
Next
Set SelObj = ThisDrawing.SelectionSets.Add("Element")
SelObj.SelectOnScreen
'END
UserForm1.Show
End Sub
I've make a simple routine for make a new selection
and erase them. The first selection work fine but in
the second the VBA get a error -2147417848 and AutoCAD crash!!!
Please why?
Private Sub CommandButton1_Click()
Dim SelObj As AcadSelectionSet
'INIZIO
UserForm1.Hide
'SELEZIONE
For Each SelObj In ThisDrawing.SelectionSets
SelObj.Delete
Next
Set SelObj = ThisDrawing.SelectionSets.Add("Element")
SelObj.SelectOnScreen
'END
UserForm1.Show
End Sub