Published on Tuesday, 26 February 2008 18:28
When using SendCommand or other instances of AutoCAD the problem can occur that there is still an active command in the command line. Add the following string to the code to clear the command line.
ThisDrawing.SendCommand Chr(27) & Chr(27) & Chr(27)
? Chr(27) represents hitting the ESCAPE button, you may want to repeat this a few times in case the command is nested.