.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

adding auto cad activex control to vb.net 2005 form

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
1171 Views, 2 Replies

adding auto cad activex control to vb.net 2005 form

hi

i added a control AcCtrl in the COM components from the path c:\Program Files\Common Files\Autodesk Shared\AcCtrl.dll.
i added this control in my tool box and i drag and dropped into the form
and i added the following code in the button click event

AxAcCtrl1.Visible = True
AxAcCtrl1.Show()
AxAcCtrl1.Src = "d:\GA.DWG"

when i run this it is showing the error

Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE))

i m using auto cad 2006 and vb.net 2005

can any one help me
2 REPLIES 2
Message 2 of 3
norman.yuan
in reply to: Anonymous

I think you can only use acCtrl.dll with ACAD OEM version or Acad2009 or later (e.g. with Acad 2009 or later installed). See Kean's articale

[http://through-the-interface.typepad.com/through_the_interface/2008/03/embedding-autoc.html]


Since you use Acad2006, hence the error.

Norman Yuan

Drive CAD With Code

EESignature

Message 3 of 3
Anonymous
in reply to: Anonymous

hi norman.yuan

thanks for your reply
i used autocad 2010 as you said

but i m getting the same problem

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost