Importing Civil 3D Namespace

Hi all,

I was wondering if it was possible to import the AutoCAD Civil 3D Namespace using IronPython in dynamo.

I have managed to import the standard AutoCAD namespace:

import sys
sys.path.append(r'C:\Program Files\Autodesk\AutoCAD 2016')
import clr
import Autodesk.AutoCAD

This works fine, when I try to import the civil namespace:

import sys
sys.path.append(r'C:\Program Files\Autodesk\AutoCAD 2016\C3D')
import clr

I receive this error:
IOError: [Errno 2] Could not load file or assembly ‘AeccDbMgd.dll’ or one of its dependencies. The specified module could not be found.

I’ve had a read around but it all goes well over my head, does anyone have any idea where I’m going wrong? Or if it is even possible? I’m assuming it is since it worked for standard AutoCAD.

I’m using Revit 2016 / CAD 2016 / Civil 2016. I have other versions of revit but only the 2016 version of Civil 3D so I can’t test to see if it’s a version issue. (I’ll get on to IT to get later versions installed!)

Thanks for reading,


Not sure if either of these could help:

1 Like