- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I hope I'm posting this in an appropriate place for starters.
I'm using IronPython, I'm trying to import the AeccDbMgd.dll assembly which has that Autodesk.Civil namespace, but I haven't had any luck. I can import the standard AutoCAD assemblies no problem, but i recieve this error when importing the civil dll:
IOError: [Errno 2] Could not load file or assembly ‘AeccDbMgd.dll’ or one of its dependencies. The specified module could not be found.
Here is my code:
import sys
sys.path.append(r'C:\Program Files\Autodesk\AutoCAD 2016\C3D')
import clr
clr.AddReferenceToFile('AeccDbMgd.dll')
I am using the IronPython interpreter inside Dynamo if that makes any difference.
I found this post on the forums from around a year ago but it doesn't have a solution:
The Autodesk developers guide states:
Browse to the install directory for AutoCAD Civil 3D, and select the base libraries acdbmgd.dll, acmgd.dll, accoremgd.dll, AecBaseMgd.dll, and AeccDbMgd.dll. Note: These are the base AutoCAD and AutoCAD Civil 3D managed libraries. Your .NET assembly can use classes defined in additional libraries.
Thanks for reading,
Tom
Solved! Go to Solution.
Alumni