Skip to content

ADN-DevTech/CivilClassLibTemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Civil Class Library Template

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.

Project Structure

.template.config/
    template.json
CivilClassLib.csproj
Cmd.cs

Files

  • .template.config/template.json: Configuration file for the template.
  • CivilClassLib.csproj: Project file for the class library.
  • Cmd.cs: Contains the sample command implementation.

Getting Started

Prerequisites

  • Visual Studio 2022 or later
  • .NET 8.0 SDK
  • AutoCAD 2025 with Civil 3D

Cloning the Repository

To clone the repository, run the following command:

git clone https://github.com/MadhukarMoogala/CivilClassLibTemplate.git
cd CivilClassLibTemplate

Installing the Template

To install the template, navigate to the cloned directory and run:

cd Civil
dotnet new install .

image

Creating a New Project from the Template

To create a new project using the installed template, run:

dotnet new civil --rootNamespace=ProjectName -o ProjectName

image

Building the Project

  1. Open the solution in Visual Studio.
  2. Restore the NuGet packages.
  3. Build the project.

image

Running the Command

  1. Load the compiled DLL into AutoCAD.
  2. Run the AddPointsToParcel command.

Customizing the Template

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.

References

  • AutoCAD .NET API Documentation
  • Civil 3D .NET API Documentation

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

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.

About

This a .NET core template to create Civil3D addins for Civil 3D 2025 and later.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages