This project is a template for creating a Civil 3D class library. It includes a sample command that adds COGO points to a selected Civil 3D parcel.
.template.config/
template.json
CivilClassLib.csproj
Cmd.cs- .template.config/template.json: Configuration file for the template.
- CivilClassLib.csproj: Project file for the class library.
- Cmd.cs: Contains the sample command implementation.
- Visual Studio 2022 or later
- .NET 8.0 SDK
- AutoCAD 2025 with Civil 3D
To clone the repository, run the following command:
git clone https://github.com/MadhukarMoogala/CivilClassLibTemplate.git
cd CivilClassLibTemplate
To install the template, navigate to the cloned directory and run:
cd Civil
dotnet new install .To create a new project using the installed template, run:
dotnet new civil --rootNamespace=ProjectName -o ProjectName- Open the solution in Visual Studio.
- Restore the NuGet packages.
- Build the project.
- Load the compiled DLL into AutoCAD.
- Run the AddPointsToParcel command.
You can customize the template by modifying the template.json file in the .template.config folder. The rootNamespace symbol can be replaced with your desired namespace.
- AutoCAD .NET API Documentation
- Civil 3D .NET API Documentation
This project is licensed under the MIT License - see the LICENSE file for details.
Madhukar Moogala
This template helps you quickly set up a Civil 3D class library with a sample command. Customize it to fit your needs and extend it with additional functionality as required.


