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
- Host: GitHub
- URL: https://github.com/adn-devtech/autocad-net-wizards
- Owner: ADN-DevTech
- License: other
- Created: 2013-04-13T16:19:48.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2024-04-24T05:07:30.000Z (almost 2 years ago)
- Last Synced: 2025-04-12T22:06:27.927Z (11 months ago)
- Language: C#
- Homepage: www.autodesk.com/developautocad
- Size: 11.8 MB
- Stars: 103
- Watchers: 35
- Forks: 39
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`

## Steps To Install
- Download and unpack https://github.com/ADN-DevTech/AutoCAD-Net-Wizards/releases/download/v2025/PluginVsix.zip
- Double Click PluginVsix.vsix



### 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.

- 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

### Written By
- Madhukar Moogala , Autodesk Platform Services (@galakar)