.NET

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

Automation of 2006

48 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
AfxOleInit()
AfxEnableControlContainer();
CWorksheets oSheets;
CWorksheet oSheet;
CRange oRange;
// Start Excel and get Application object.
if(!oExcel.CreateDispatch("Excel.Application"))
{
AfxMessageBox("Cannot start Excel and get Application object.");
acedRetVoid () ;
return (RSRSLT);
}
else
{
//Make the application visible and give the user control of
//Microsoft Excel.
oExcel.put_Visible(TRUE);
oExcel.put_UserControl(TRUE);
// 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?

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
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 to get help installing your software.

Ask the Community