Developer Center

AutoCAD Civil 3D

AutoCAD® Civil 3D® is a powerful civil engineering tool incorporating a dynamic engineering model that allows elements to be automatically updated in response to changes in your design. Using AutoCAD® Civil 3D® as a platform, you can take advantage of industry-standard development tools and technologies when building applications.

Learn more about the latest AutoCAD Civil 3D features at the AutoCAD Civil 3D product center.

What's New

AutoCAD® Civil 3D® is built on AutoCAD®, leveraging its new functionalities and APIs. With its easy to use Ribbon user interface, AutoCAD® Civil 3D® now shares the same user interface, look and feel as other Autodesk products.

This release of AutoCAD® Civil 3D® has introduced the new .NET API which gives much better performance than the existing COM API. This API currently exposes functionality for Corridors, Alignments, Pipe Networks and Profiles. For other functionality, one can use the COM API. Development requires Microsoft Visual Studio 2008 SP1. There are also some new functions in the COM API. API documentation has been restructured for improved ease of use, and includes a reference guide for the new .NET API, complete with sample code snippets.

Source Code Samples

Since AutoCAD® Civil 3D® is based upon AutoCAD®, you can take advantage of all the AutoCAD® source code samples that are included with the installation of AutoCAD® Civil 3D® software in the samples directory.

The Civil 3D API subdirectory contains samples on COM API, VC++ and .NET. New samples on Civil 3D® 2010 .NET API are also included in the same location.

Programming Tools and Setup

There are three APIs available for customizing AutoCAD® Civil 3D® :

  • COM API (Visual Basic for Applications) — This can be used in the Visual Basic for Applications (VBA) IDE included with AutoCAD® Civil 3D® and macros can be run from the AutoCAD® Civil 3D® command line. You can also create clients that access the COM API from managed (.NET) or unmanaged (C++) code.
  • .NET API — This allows you to write extensions to AutoCAD® Civil 3D® in any .NET language. In general, the AutoCAD® Civil 3D® .NET API performs significantly faster than the COM API. Development requires Microsoft Visual Studio 2008 SP1 or better.
  • Custom Draw API (in C++) — This is an extension of the AutoCAD ObjectARX API that allows you to customize the way AutoCAD® Civil 3D® renders objects. Development requires Microsoft Visual Studio 2008 SP1 or better.

Although AutoCAD® Civil 3D® does not expose an ObjectARX API, applications built with the AutoCAD ObjectARX SDK or the AutoCAD Map ObjectARX SDK will run within AutoCAD® Civil 3D®.

Documentation

Extensive application development documentation for the ActiveX (COM Automation) API and the new .NET API are available into the AutoCAD® Civil 3D® installation Help directory.

Civil 3D 2010 Update 2 includes .NET API enhancement. The following is the reference guide that include additional API in the Update 2:

AutoCAD Civil 3D 2010 Update2 .NET API Reference Document

The following resource will help you get started with programming Civil 3D. It assumes familiarity with AutoCAD Civil 3D and general programming concepts.

  • DevTV: Introduction to Civil 3D Programming NEW !
    A self-paced video tutorial demonstrating how to get started developing with Civil 3D.
    View online | Download

Support

Public discussion groups provide an open forum for sharing knowledge and receiving support. Join the AutoCAD Civil 3D General Discussion Group or the AutoCAD Civil 3D Customization Discussion Group.

Because AutoCAD Civil 3D software is based on AutoCAD software, you might also find useful software development information in the following AutoCAD Development Discussion Groups:

Visual LISP, AutoLISP, and General Customization Issues?
VB/VBA/ActiveX CustomizationVB/VBA/ActiveX Customization
ObjectARX Customization

If you would like personalized API support and consulting at your facility, send us an e-mail. If you need more professional support, consider joining the Autodesk Developer Network.