An open API service indexing awesome lists of open source software.

https://github.com/adn-devtech/autocad-net-wizards

AutoCAD .Net Wizards for Visual Studio
https://github.com/adn-devtech/autocad-net-wizards

Last synced: 11 months ago
JSON representation

AutoCAD .Net Wizards for Visual Studio

Awesome Lists containing this project

README

          

# AutoCAD .NET Wizards

- Modern wizards for .NET Core projects

- This tool uses VSIX technology to install a VS Template on Visual Studio.

- All command-line instructions should run on the[ Visual Studio Developer Command Prompt.]([Command-line shells & prompt for developers - Visual Studio (Windows) | Microsoft Learn](https://learn.microsoft.com/en-us/visualstudio/ide/reference/command-prompt-powershell?view=vs-2022))

## Steps To Build

```bash
git clone https://github.com/ADN-DevTech/AutoCAD-Net-Wizards.git
cd AutoCAD-Net-Wizards\AutoCAD-Plugin-Template
devenv AutoCAD-Plugin.sln
msbuild PluginVsix\PluginVsix.csproj /t:build /p:Configuration=Release;Platform=x64
```

- To create template packs for both C# and VB

- Set `ExamplePlugin` as `Start Up Project`.

- From Menubar->Project->Export Template

- Repeat same for `ExamplePluginVB`

![ExportTemplate](https://github.com/ADN-DevTech/AutoCAD-Net-Wizards/assets/6602398/847a729e-f3b6-4a42-b230-5327381fe3e0)

## Steps To Install

- Download and unpack https://github.com/ADN-DevTech/AutoCAD-Net-Wizards/releases/download/v2025/PluginVsix.zip

- Double Click PluginVsix.vsix

![VsixInstall-1](https://github.com/ADN-DevTech/AutoCAD-Net-Wizards/assets/6602398/3c40eeed-ab2e-4e3b-afa4-17a4e7ae1211)

![VsixInstall-2](https://github.com/ADN-DevTech/AutoCAD-Net-Wizards/assets/6602398/94618cfd-40a1-4580-9b90-3971ee4702c2)

![AutoCAD-Wizard](https://github.com/ADN-DevTech/AutoCAD-Net-Wizards/assets/6602398/dc1a3cee-4519-4d05-8d0f-9561c19b166e)

### Tips

- After creating the project from the template pack, edit `launchSettings.json` to change the executable path to acad.exe.

- **Wizard template fetches** the AutoCAD NuGet package from the Microsoft NuGet Server.
- **The template project will resolve to the local NuGet package** if it already exists at `%USERPROFILE%\.nuget`.
- **To add the ObjectARX SDK or Civil SDK from a local file disk, edit the project file (.csproj).**
- Add `D:\Arx2025\inc\;$(AssemblySearchPaths)`.

- Select the project from solution explorer and right click.

![EdiProjectFile](https://github.com/ADN-DevTech/AutoCAD-Net-Wizards/assets/6602398/77fc0b17-f914-4d36-8f53-a6b788bab670)

- A typical .NET plugin project to accomodate AutoCAD, ACA, C3D etc.

```xml


net8.0-windows
x64
Library
Example
false



D:\ArxSDKs\arx2025

D:\ACAD\venn\AutoCAD 2025
$(AcadDir)
$(AcadDir)\ACA\
$(AcadDir)\C3D\
$(ArxSdk)\inc\;$(OMFMgdPath);$(AeccMgdPath);$(AssemblySearchPaths)


bin\x64\Debug\
MinimumRecommendedRules.ruleset


bin\x64\Release\
MinimumRecommendedRules.ruleset


false
false






4945;%(DisableSpecificWarnings)




False
$(ArxMgdPath)\acdbmgd.dll
False


False
$(ArxMgdPath)\acmgd.dll
False


False
$(ArxMgdPath)\accoremgd.dll
False


False
$(OMFMgdPath)\AecBaseMgd.dll
False


False
$(AeccMgdPath)\AeccDbMgd.dll
False

```

- launchSettings for various profiles

```json
{
"profiles": {
"Example": {
"commandName": "Project"
},
"Acad": {
"commandName": "Executable",
"executablePath": "$(AcadDir)\\acad.exe"
},
"C3D-Metric": {
"commandName": "Executable",
"executablePath": "$(AcadDir)\\acad.exe",
"commandLineArgs": " /ld \"$(AcadDir)\\AecBase.dbx\" /p \"<>\" /product C3D /language en-US"
},
"C3D-Imperial": {
"commandName": "Executable",
"executablePath": "$(AcadDir)\\acad.exe",
"commandLineArgs": " /ld \"$(AcadDir)\\AecBase.dbx\" /p \"<>\" /product C3D /language en-US"
}
}
}
```

### Uninstall Plugin VSIX

- Through CLI

```bash
vsixinstaller /u:AutoCAD2025_07DA9910-9E94-471B-BD32-565D05D4D857
```

- Through UI
![Uninstall-VSIX](https://github.com/ADN-DevTech/AutoCAD-Net-Wizards/assets/6602398/6762e962-062d-4209-aa31-3f8b07140a9a)

### Written By

- Madhukar Moogala , Autodesk Platform Services (@galakar)