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

Creating Windows Application versus Class Library (ie exe vs dll) for AutoCAD

3 REPLIES 3
Reply
Message 1 of 4
bjhuffine
659 Views, 3 Replies

Creating Windows Application versus Class Library (ie exe vs dll) for AutoCAD

I thought this would be easy at first, but keep getting an error:

 

"FileNotFoundException was unhandled"  "Could not load file or assembly 'acdbmgd, Version=17.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified."

 

I thought I could read the drawing database externally using the ReadDwgFile method.  If I use this in a Class Library (aka netloadable dll), it works fine, if used in an exe it doesn't. 

 

Is it not possible to create a stand-alone .NET executable instead of a netloaded dll that can read various drawing databases outside of AutoCAD?

3 REPLIES 3
Message 2 of 4
caddzone
in reply to: bjhuffine

You cannot use the AutoCAD managed API from another process,

it's only usable from a NETLOADed DLL.

 

 



AcadXTabs for AutoCAD
Supporting AutoCAD 2000-2011


Message 3 of 4
bjhuffine
in reply to: caddzone

I was afraid you were going to say that.  Do you know of or have used any tricks to get around this?

Message 4 of 4
apt42
in reply to: bjhuffine

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