Community
Alias Forum
Welcome to Autodesk’s Alias Forums. Share your knowledge, ask questions, and explore popular Alias topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Application Losing Control on SelectOnScreen

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
196 Views, 0 Replies

Application Losing Control on SelectOnScreen

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

Tags (1)
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report