Message 1 of 6
AcadDocument.SendCommand
Not applicable
11-10-2009
07:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good afternoon, I'm writing an application with C#2008 that need to send -ETransmit command via SendCommand API using AcadDocument.
This is what I do:
string progID = "AutoCAD.Application.18";
Type acType = Type.GetTypeFromProgID(progID);
acApp = (AcadApplication)Activator.CreateInstance(acType, true);
acApp.ActiveDocument.SendCommand("-estransmit\r");
acApp.ActiveDocument.SendCommand("C");
acApp.ActiveDocument.SendCommand("MyZIPFilePath\r");
This is what I do:
string progID = "AutoCAD.Application.18";
Type acType = Type.GetTypeFromProgID(progID);
acApp = (AcadApplication)Activator.CreateInstance(acType, true);
acApp.ActiveDocument.SendCommand("-estransmit\r");
acApp.ActiveDocument.SendCommand("C");
acApp.ActiveDocument.SendCommand("MyZIPFilePath\r");