I have to send command to AutoCAD command prompt. I have code for sending command to already saved drawing. It is working fine. But how to pass command to a not saved drawing(i.e the drawing is not saved even once). I have opened a new drawing and kept it in a minimized stage. Now on click of a button from vb6 I want to pass command to that drawing which is not saved even once and kept as minimized.

for example
doc.sendcommand="command"


I hope you understood what I need.