It seems that I have a synchronization problem with the SendCommand in the example below. The two SendCommands are not executed until after the file has been saved. I tried waiting until the IsQuiescent state is True, but that never happens. Can somebody give me any ideas as to why the IsQuiescent state appears to be stuck to False? Is there another way to solve this synchronization problem with the SendCommand?
Obj = ThisDrawing.ModelSpace.AddBox(ZeroOrgin, 2, 4, 8)
ThisDrawing.SendCommand("VPOINT r 225 8 ")
ThisDrawing.SendCommand("SHADEMODE Realistic ")
' It appears that IsQuiescent is never True and as a result,
' this loop never exits. Any ideas why? Is there another way to
' know when the SendCommand is finished?
Do Until ObjAcad.GetAcadState.IsQuiescent = True
ThisDrawing.SaveAs(OutputPath & "\Test.dwg")