The example below provides some basic code for establishing a COM connection to AutoCAD using VB.NET. After a connection is established, it is then possible to send remote commands to the AutoCAD command-line as well as automate other features in the program.
The screenshot shows a custom Grasshopper VB.NET component using this code.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgX7A0qnH-Pd5hfMke3KST3pUN2mGTddTK3O-cG07ZuBH-euzwwsLKmSllRL1fW1iF61MZcDFz-gUNuenL78e0oplhCwofVNhgxlKUgVPY2PybOZC_ARkVKmQj3prnIu42sUdRlGq2tX7s/s400/ACAD_GH_IPC.jpg)
The process is quite simple.... Head over to The Proving Ground Wiki for details...