New Member
Posts: 1
Registered: ‎08-16-2005
Message 1 of 1 (50 Views)

Automation of 2006

50 Views, 0 Replies
08-16-2005 08:46 PM
Can you control 2006 from an external program using .NET?
ie in the same way you can use COM in an ARX app to open up excel application modify a spreadsheet and close excel.
I can't find any examples using COM or .NET to do this.
What I'm looking for is a code fragment similar to this code to open excel for opening autocad
CWorksheets oSheets;
CWorksheet oSheet;
CRange oRange;
// Start Excel and get Application object.
AfxMessageBox("Cannot start Excel and get Application object.");
acedRetVoid () ;
return (RSRSLT);
//Make the application visible and give the user control of
//Microsoft Excel.
// Add a new workbook and get the first worksheet in that book.
oBooks = oExcel.get_Workbooks();
oBook = oBooks.Open(........
Anybody done this for 2006 to start Acad and open a drawing using .NET or COM from another app?
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.