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

Reg. Could Not Load Acdbmgd.dll

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
dhimant.bhensdadia
919 Views, 4 Replies

Reg. Could Not Load Acdbmgd.dll

Hi,

 

I have made the insertblock.dll (Class Library Project) file to insert the block in one of my drawing file.

 

For this, I have to Open the drawing file and using NETLOAD command to load my insertblock.dll and inserting block. It is working fine.

 

Now I have made the Windows Project (EXE project) and in that I  have added my insertblock.dll and executing the EXE file and calling the InsertBlock funtion that inside in insertblock.dll file.

 

So in this case it is giving the error as shown in the attached Snapshot

 

 

4 REPLIES 4
Message 2 of 5
sszabo
in reply to: dhimant.bhensdadia

You can only reference *mgd*.dll from a plugin.  If you want to control autocad from an outside exe you have 2 options: COM interop assemblies or WCF.  There are articles on both.  I posted one here:

 

http://forums.autodesk.com/t5/NET/Catastrophic-failure-HRESULT-0x8000FFFF-E-UNEXPECTED/m-p/3765575#M...

Message 3 of 5

Can you liitle bit ellaborate more so I can easily understand.

 

Means what chages need to be done in My EXE project to load my insertblock.dll file ?

Message 4 of 5

It means that you CANNOT use managed API DLLs from AutoCAD (acmgd.dll/acdbmgd.dll...) in EXE project. They can only be used in code that runs inside AutoCAD.

Message 5 of 5

OK...Thanks....

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