Autodesk Alias
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Applicatio n Losing Control on SelectOnSc reen
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
56 Views, 0 Replies
05-31-2012 03:46 AM
Hello all,
i have this vb.net code, when the code is executed, after calling SelectOnScreen function, it does not throw any exception, but control path is lost and next lines in this code are not executed.
On Error GoTo ErrorHandler
Dim selSet As AcadSelectionSet
If doc Is Nothing Then Exit Sub 'doc is AcadDocument
selSet = doc.SelectionSets.Add("DocType")
selSet.SelectOnScreen() 'Control is lost here
'Some line of code that never executes
selSet.Delete()
Exit Sub
ErrorHandler:
MessageBox.Show("Error")
End Sub
