Skip to content

Commit 440dfc7

Browse files
committed
Update Changelog.md
1 parent e85f2a0 commit 440dfc7

1 file changed

Lines changed: 53 additions & 1 deletion

File tree

Changelog.md

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,58 @@
11
# 2027.0.0-preview.2.20260203
22

3-
- Revit 2027 support
3+
This release adds support for Revit 2027, benchmarking for different languages and custom Revit installation path.
4+
5+
## Localization support
6+
7+
BenchmarkDotNet initializes Revit with the `English - United States` language. To override these defaults, use assembly-level attributes:
8+
9+
- Add the attributes to any .cs file in your project (e.g., Program.cs):
10+
11+
```csharp
12+
using Nice3point.Revit.Injector.Attributes;
13+
14+
[assembly: RevitLanguage("ENU")]
15+
```
16+
17+
- Add the attributes directly to your .csproj file:
18+
19+
```xml
20+
<!-- Revit Environment Configuration -->
21+
<ItemGroup>
22+
<AssemblyAttribute Include="Nice3point.Revit.Injector.Attributes.RevitLanguageAttribute">
23+
<_Parameter1>ENU</_Parameter1>
24+
</AssemblyAttribute>
25+
</ItemGroup>
26+
```
27+
28+
The `RevitLanguage` attribute accepts a [language](https://help.autodesk.com/view/RVT/2026/ENU/?guid=GUID-BD09C1B4-5520-475D-BE7E-773642EEBD6C) name (e.g., "English - United States"), code (e.g., "ENU")
29+
or [LanguageType](https://www.revitapidocs.com/2026/dfda33cf-cbff-9fde-6672-38402e87510f.htm) enum value (e.g., "English_GB" or "15").
30+
31+
## Custom Revit installation path
32+
33+
TUnit initializes Revit from `C:\Program Files\Autodesk\Revit {version}` installation path. To override these defaults, use assembly-level attributes:
34+
35+
- Add the attributes to any .cs file in your project (e.g., TestsConfiguration.cs):
36+
37+
```csharp
38+
using Nice3point.Revit.Injector.Attributes;
39+
40+
[assembly: RevitInstallationPath("D:\Autodesk\Revit Preview")]
41+
```
42+
43+
- Add the attributes directly to your .csproj file:
44+
45+
```xml
46+
<!-- Revit Environment Configuration -->
47+
<ItemGroup>
48+
<AssemblyAttribute Include="Nice3point.Revit.Injector.Attributes.RevitInstallationPathAttribute">
49+
<_Parameter1>D:\Autodesk\Revit $(RevitVersion)</_Parameter1>
50+
</AssemblyAttribute>
51+
</ItemGroup>
52+
```
53+
54+
## Breaking changes
55+
456
- Global hooks `OnSetup`/`OnCleanup` renamed to `OnGlobalSetup`/`OnGlobalCleanup`
557

658
# 2026.0.0

0 commit comments

Comments
 (0)