Hi, thanks for your help!
> Have you tried sending everything in a single call to SendCommand() ?
>SendCommand("-ETRANSMIT\nC\nMyZIPFilePath\n");
>You can separate the response to each input prompt with a newline ("\n").
Yes I did, but it doesn't work as expected every time. Sometimes the command works fine and AutoCAD generate MyZIPFilePath file, but other times I found AutoCAD waiting for a command, sometimes waiting for "C" parameter, sometimes waiting for the path.
I think this is due to a time issue because it seems that C# is faster than AutoCAD, so I splitted ETransmit in three different commands. "Googling" around the net, I found a tip inside Microsoft Site (MSDN) that explain the problem and suggest a possibile solution using a static class that implement IOleMessageFilter interface.
Link:
http://msdn.microsoft.com/en-us/library/ms228772(VS.80).aspx.
Using this class I solve the problem but when the application send the second command nothing happen. Both application (AutoCAD + C# application) are still working but AutoCAD didn't receive the command and C# application didn't get any exception.
I need to send ETransmit via SendCommand because I must automate this operation in order to decrease our drawing time. Maybe you know a "shortcut" to do ETransmit in way I don't know, but in the future I'm sure I will need to use SendCommand maybe with "multiple" send commands, so I want to resolve the problem using this way...
Thanks again
Marco