Reg. Could Not Load Acdbmgd.dll

Reg. Could Not Load Acdbmgd.dll

Anonymous
Not applicable
1,875 Views
4 Replies
Message 1 of 5

Reg. Could Not Load Acdbmgd.dll

Anonymous
Not applicable

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

 

 

0 Likes
Accepted solutions (1)
1,876 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable

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...

0 Likes
Message 3 of 5

Anonymous
Not applicable

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 ?

0 Likes
Message 4 of 5

Norman_Yuan
Mentor
Mentor
Accepted solution

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.

Norman Yuan

Drive CAD With Code

EESignature

0 Likes
Message 5 of 5

Anonymous
Not applicable
OK...Thanks....
0 Likes