Description
Information about how to update existing .NET applications to work with AutoCAD 2026 is provided here.
AutoCAD 2026 is a binary compatibility release and ObjectARX applications developed for AutoCAD 2025 and later shouldn't need to be recompiled. Applications developed for AutoCAD 2024 and earlier releases will need to be recompiled before they can be used with AutoCAD 2026-based products. The following sections list API changes made to this release. If your application uses any of these APIs, you will need to update your code accordingly.
Additionally, Managed .NET applications should be updated to target .NET 8.0 for AutoCAD 2025 and later releases rather than the previous supported version of 4.8 .NET Framework or lower with AutoCAD 2024 and earlier releases. In addition to changing .NET versions and prior to compiling your project, make sure the following has been added to the ItemGroup element of your CSPROJ or VBPROJ file:
<FrameworkReference Include="Microsoft.WindowsDesktop.App"></FrameworkReference>
Changed Enums
Class |
Topic |
Previous Declaration |
Declaration |
---|---|---|---|
public enum Version { CurrentVersion = 20, TwoThousandEight = 2, TwoThousandEighteen = 12, TwoThousandEleven = 5, TwoThousandFifteen = 9, TwoThousandFourteen = 8, TwoThousandNine = 3, TwoThousandNineteen = 13, TwoThousandSeven = 1, TwoThousandSeventeen = 11, TwoThousandSix = 0, TwoThousandSixteen = 10, TwoThousandTen = 4, TwoThousandThirteen = 7, TwoThousandTwelve = 6, TwoThousandTwenty = 14, TwoThousandTwentyFive = 0x13, TwoThousandTwentyFour = 0x12, TwoThousandTwentyOne = 15, TwoThousandTwentyThree = 0x11, TwoThousandTwentyTwo = 0x10, Unknown = 0x15} |
public enum Version { CurrentVersion = 0x15, TwoThousandEight = 2, TwoThousandEighteen = 12, TwoThousandEleven = 5, TwoThousandFifteen = 9, TwoThousandFourteen = 8, TwoThousandNine = 3, TwoThousandNineteen = 13, TwoThousandSeven = 1, TwoThousandSeventeen = 11, TwoThousandSix = 0, TwoThousandSixteen = 10, TwoThousandTen = 4, TwoThousandThirteen = 7, TwoThousandTwelve = 6, TwoThousandTwenty = 14, TwoThousandTwentyFive = 0x13, TwoThousandTwentyFour = 0x12, TwoThousandTwentyOne = 15, TwoThousandTwentySix = 20, TwoThousandTwentyThree = 0x11, TwoThousandTwentyTwo = 0x10, Unknown = 0x16} | ||
public enum PointCloudProperty {Classification = 3,Color = 1,Intensity = 2,Normal = 4} |
public enum PointCloudProperty { Classification = 3, Color = 1, Intensity = 2, Normal = 4, TerrestrialClassification = 7} |
Obsolete .NET API
Class |
Topic |
Declaration |
Use Instead |
---|---|---|---|
WblockNoticeEventArgs |
public Database To; | public Database From; |