How goncalogbastos/civil3d-addin works
Project type and purpose
• This is a Visual Studio solution (“Plugins_Collection.sln”) containing two C# class-library projects: AutoCAD_Plugins and Civil3D_Plugins.
• Each project compiles to one or more .dll files that implement custom commands (00_…, 01_…, … .cs) against the AutoCAD and Civil 3D .NET APIs.
• At runtime you load those DLLs (and the accompanying LISP loader: NETLOAD_Plugins_Import.lsp) into the host applications to automate drafting/infrastructure‐design tasks.
File structure
• Top level
• Plugins_Collection.sln – the VS solution
• NETLOAD_Plugins_Import.lsp – AutoCAD LISP script to load the DLLs
• References/ – (probably third‐party or API .dll references)
• README.md – high‐level description
• AutoCAD_Plugins/
• .csproj – builds a class library for AutoCAD
• 00_AutoCAD_Plugins.cs through 18_… .cs – individual command implementations
• Properties/AssemblyInfo.cs – assembly metadata
• Civil3D_Plugins/
• .csproj – builds a class library for Civil 3D
• 00_Civil3D_Plugins.cs through 11_SampleLines.cs – individual Civil 3D command implementations
• Surfaces.cs – shared helper code
• Properties/AssemblyInfo.cs
Key insights from README
• The repo’s goal is to share “AutoCAD and Civil 3D commands” used in professional infrastructure projects.
• You must allow the host apps to read the generated .dll files (i.e., set the proper trusted locations or security flags in AutoCAD/Civil 3D).