Escape command is not responding

Escape command is not responding

Anonymous
Not applicable
512 Views
2 Replies
Message 1 of 3

Escape command is not responding

Anonymous
Not applicable

IAcadDocument.sendcommand("\X1B") is not working . It is crashing in autocad 2017. Can anyone please help on this.

 

Thanks in advance

0 Likes
513 Views
2 Replies
Replies (2)
Message 2 of 3

dohenry
Contributor
Contributor

 

Hi 

 

This might be of help.

 

Dim doc As Document = Application.DocumentManager.MdiActiveDocument

doc.SendStringToExecute(Chr(27) + Chr(27), True, False, False)

 

 

 

0 Likes
Message 3 of 3

dohenry
Contributor
Contributor

 

Hi 

 

Sorry the previous line may include 2 esc

 

Could try this as either

 

doc.SendStringToExecute("Chr(27)", True, False, False)

 

 

0 Likes