Skip to content

Commit 8eabdc6

Browse files
added instructions for concise and brevity
1 parent ad426cc commit 8eabdc6

File tree

1 file changed

+126
-8
lines changed

1 file changed

+126
-8
lines changed

README.md

Lines changed: 126 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
A modern version of wizards supporting .NET core projects, this uses VSIX technology to install VS Template on Visual Studio.
44

5-
6-
7-
8-
95
## Steps To Build
106

117
```bash
@@ -20,19 +16,141 @@ msbuild PluginVsix\PluginVsix.csproj /t:build /p:Configuration=Release;Platform=
2016
- Set `ExamplePlugin` as `Start Up Project`.
2117

2218
- From Menubar->Project->Export Template
19+
2320
- Repeat same for `ExamplePluginVB`
24-
21+
2522
![ExportTemplate](https://github.com/ADN-DevTech/AutoCAD-Net-Wizards/assets/6602398/847a729e-f3b6-4a42-b230-5327381fe3e0)
2623

27-
2824
## Steps To Install
25+
2926
- Download and unpack https://github.com/ADN-DevTech/AutoCAD-Net-Wizards/releases/download/v2025/PluginVsix.zip
30-
- Double Click PluginVsix.vsix
3127

28+
- Double Click PluginVsix.vsix
29+
3230
![VsixInstall-1](https://github.com/ADN-DevTech/AutoCAD-Net-Wizards/assets/6602398/3c40eeed-ab2e-4e3b-afa4-17a4e7ae1211)
33-
31+
3432
![VsixInstall-2](https://github.com/ADN-DevTech/AutoCAD-Net-Wizards/assets/6602398/94618cfd-40a1-4580-9b90-3971ee4702c2)
3533

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

36+
### Tips
37+
38+
- After creating the project from the template pack, edit `launchSettings.json` to change the executable path to acad.exe.
39+
40+
- **Wizard template fetches** the AutoCAD NuGet package from the Microsoft NuGet Server.
41+
- **The template project will resolve to the local NuGet package** if it already exists at `%USERPROFILE%\.nuget`.
42+
- **To add the ObjectARX SDK or Civil SDK from a local file disk, edit the project file (.csproj).**
43+
- Add `<AssemblySearchPaths>D:\Arx2025\inc\;$(AssemblySearchPaths)</AssemblySearchPaths>`.
44+
45+
46+
47+
- Select the project from solution explorer and right click.
48+
49+
![](C:\Users\moogalm\AppData\Roaming\marktext\images\2024-04-24-10-02-17-image.png)
50+
51+
52+
53+
- A typical .NET plugin project to accomodate AutoCAD, ACA, C3D etc.
54+
55+
```xml
56+
<Project Sdk="Microsoft.NET.Sdk">
57+
<PropertyGroup>
58+
<TargetFramework>net8.0-windows</TargetFramework>
59+
<Platforms>x64</Platforms>
60+
<OutputType>Library</OutputType>
61+
<RootNamespace>Example</RootNamespace>
62+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
63+
</PropertyGroup>
64+
<PropertyGroup>
65+
<!--Edit ArxSdk to local ObjectARX Path-->
66+
<ArxSdk>D:\ArxSDKs\arx2025</ArxSdk>
67+
<!--Edit AcadDir to AutoCAD 2025 Install path-->
68+
<AcadDir>D:\ACAD\venn\AutoCAD 2025</AcadDir>
69+
<ArxMgdPath>$(AcadDir)</ArxMgdPath>
70+
<OMFMgdPath>$(AcadDir)\ACA\</OMFMgdPath>
71+
<AeccMgdPath>$(AcadDir)\C3D\</AeccMgdPath>
72+
<AssemblySearchPaths>$(ArxSdk)\inc\;$(OMFMgdPath);$(AeccMgdPath);$(AssemblySearchPaths)</AssemblySearchPaths>
73+
</PropertyGroup>
74+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
75+
<OutputPath>bin\x64\Debug\</OutputPath>
76+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
77+
</PropertyGroup>
78+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
79+
<OutputPath>bin\x64\Release\</OutputPath>
80+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
81+
</PropertyGroup>
82+
<PropertyGroup>
83+
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
84+
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
85+
</PropertyGroup>
86+
<ItemGroup Condition=" '$(UsingMicrosoftNETSdk)' == 'true' or '$(CLRSupport)' == 'NetCore' ">
87+
<FrameworkReference Include="Microsoft.WindowsDesktop.App" />
88+
</ItemGroup>
89+
<ItemDefinitionGroup Condition=" '$(CLRSupport)' == 'NetCore' ">
90+
<ClCompile>
91+
<DisableSpecificWarnings>4945;%(DisableSpecificWarnings)</DisableSpecificWarnings>
92+
</ClCompile>
93+
</ItemDefinitionGroup>
94+
<ItemGroup>
95+
<Reference Include="acdbmgd">
96+
<SpecificVersion>False</SpecificVersion>
97+
<HintPath>$(ArxMgdPath)\acdbmgd.dll</HintPath>
98+
<Private>False</Private>
99+
</Reference>
100+
<Reference Include="acmgd">
101+
<SpecificVersion>False</SpecificVersion>
102+
<HintPath>$(ArxMgdPath)\acmgd.dll</HintPath>
103+
<Private>False</Private>
104+
</Reference>
105+
<Reference Include="accoremgd">
106+
<SpecificVersion>False</SpecificVersion>
107+
<HintPath>$(ArxMgdPath)\accoremgd.dll</HintPath>
108+
<Private>False</Private>
109+
</Reference>
110+
<Reference Include="AecBaseMgd">
111+
<SpecificVersion>False</SpecificVersion>
112+
<HintPath>$(OMFMgdPath)\AecBaseMgd.dll</HintPath>
113+
<Private>False</Private>
114+
</Reference>
115+
<Reference Include="AeccDbMgd">
116+
<SpecificVersion>False</SpecificVersion>
117+
<HintPath>$(AeccMgdPath)\AeccDbMgd.dll</HintPath>
118+
<Private>False</Private>
119+
</Reference>
120+
<!--Add any other references here -->
121+
122+
</ItemGroup>
123+
</Project>
124+
```
125+
126+
- launchSettings for various profiles
127+
128+
```json
129+
{
130+
"profiles": {
131+
"Example": {
132+
"commandName": "Project"
133+
},
134+
"Acad": {
135+
"commandName": "Executable",
136+
"executablePath": "$(AcadDir)\\acad.exe"
137+
},
138+
"C3D-Metric": {
139+
"commandName": "Executable",
140+
"executablePath": "$(AcadDir)\\acad.exe",
141+
"commandLineArgs": " /ld \"$(AcadDir)\\AecBase.dbx\" /p \"<<C3D_Metric>>\" /product C3D /language en-US"
142+
},
143+
"C3D-Imperial": {
144+
"commandName": "Executable",
145+
"executablePath": "$(AcadDir)\\acad.exe",
146+
"commandLineArgs": " /ld \"$(AcadDir)\\AecBase.dbx\" /p \"<<C3D_Imperial>>\" /product C3D /language en-US"
147+
}
148+
}
149+
}
150+
```
151+
152+
### Written By
153+
154+
- Madhukar Moogala , Autodesk Platform Services (@galakar)
155+
38156

0 commit comments

Comments
 (0)