Professional Documents
Culture Documents
By Augusto Goncalves
Now that we have released Civil 3D 2015, you might be wondering what is required to
create a .NET addin project for this new release. First, let me point out that if you have a
Civil 3D 2014 .NET addin, it should just work on 2015 in compatibility mode (.NET
supports older versions).
There are some major changes you need to consider when creating a new addin. As
mentioned, 2014 addins should work in compatibility mode. Here are the main points:
Now an interesting point: there is no Civil 3D 2015 install folder, its actually installed
at the same folder as plain AutoCAD and there is a subfolder with Civil 3D specific
files: [\Program Files\Autodesk\AutoCAD 2015\C3D]. Actually this change started
back on 2014, see more details at this post.
This also means the Civil 3D will actually start AutoCAD with a few parameters. For
instance, this is the default icon target for Metric profile: "C:\Program
Files\Autodesk\AutoCAD 2015\acad.exe" /ld "C:\Program
Files\Autodesk\AutoCAD 2015\\AecBase.dbx" /p "<<C3D_Metric>>" /product
"C3D"
First, as usual, we need to add reference to AutoCAD .NET references. Those are
required as Civil 3D was build on top of AutoCAD. You may choose to download the
ObjectARX SDK and get the references from [\ObjectARX 2015\inc] folder or simply
get them from [\Program Files\Autodesk\AutoCAD 2015] folder. As Civil 3D 2015 is
64 bit only, there is no relevant difference between them. Here are the AutoCAD
references required:
Now, Civil 3D will require its reference. As there is no SDK for Civil 3D, the reference
is located [\Program Files\Autodesk\AutoCAD 2015\C3D] folder:
1. AeccDbMgd.dll Civil 3D main objects
When you start writing code, it will complain that another reference is missing. Actually
our AEC products share some objects, therefore Civil 3D also needs reference to this
common DLL located under AutoCAD [\Program Files\Autodesk\AutoCAD 2015]
folder:
There are some other references, but those 5 are required, all others are optional and
only used on specific features;