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

Automation of 2006

51 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?
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.