Skip to content

Commit 8824d44

Browse files
author
Jeremy Tammik
authored
Merge branch 'master' into master
2 parents 41b44ad + afaf9b3 commit 8824d44

File tree

10 files changed

+20
-22
lines changed

10 files changed

+20
-22
lines changed

Labs/1_Revit_API_Intro/SourceCS/IntroCs.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@
5959
</PropertyGroup>
6060
<ItemGroup>
6161
<Reference Include="RevitAPI">
62-
<HintPath>..\..\..\..\..\..\Program Files\Autodesk\Revit 2022\RevitAPI.dll</HintPath>
62+
<HintPath>C:\Program Files\Autodesk\Revit 2022\RevitAPI.dll</HintPath>
6363
<Private>False</Private>
6464
</Reference>
6565
<Reference Include="RevitAPIUI">
66-
<HintPath>..\..\..\..\..\..\Program Files\Autodesk\Revit 2022\RevitAPIUI.dll</HintPath>
66+
<HintPath>C:\Program Files\Autodesk\Revit 2022\RevitAPIUI.dll</HintPath>
6767
<Private>False</Private>
6868
</Reference>
6969
<Reference Include="System" />

Labs/1_Revit_API_Intro/SourceVB/6_ExtensibleStorage.vb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,16 @@ Friend Class ExtensibleStorage
125125

126126
' Create field1
127127

128-
Dim fieldBuilder1 As FieldBuilder =
128+
Dim fieldBuilder1 As FieldBuilder =
129129
builder.AddSimpleField("SocketLocation", GetType(XYZ))
130130

131-
' .SetSpec(SpecTypeId.Length) ' 2021
132-
' GetType(XYZ)).SetUnitType(UnitType.UT_Length) ' 2020
131+
' .SetSpec(SpecTypeId.Length) ' 2021
132+
' GetType(XYZ)).SetUnitType(UnitType.UT_Length) ' 2020
133133

134134
' Set unit type
135135

136+
fieldBuilder1.SetSpec(SpecTypeId.Length) ' 2022
137+
136138
'fieldBuilder1.SetUnitType(UnitType.UT_Length) ' 2020
137139
fieldBuilder1.SetSpec(SpecTypeId.Length) ' 2021
138140

Labs/1_Revit_API_Intro/SourceVB/IntroVb.vbproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@
6464
</PropertyGroup>
6565
<ItemGroup>
6666
<Reference Include="RevitAPI">
67-
<HintPath>..\..\..\..\..\..\Program Files\Autodesk\Revit 2022\RevitAPI.dll</HintPath>
67+
<HintPath>C:\Program Files\Autodesk\Revit 2022\RevitAPI.dll</HintPath>
6868
<Private>False</Private>
6969
</Reference>
7070
<Reference Include="RevitAPIUI">
71-
<HintPath>..\..\..\..\..\..\Program Files\Autodesk\Revit 2022\RevitAPIUI.dll</HintPath>
71+
<HintPath>C:\Program Files\Autodesk\Revit 2022\RevitAPIUI.dll</HintPath>
7272
<Private>False</Private>
7373
</Reference>
7474
<Reference Include="System" />

Labs/1_Revit_API_Intro/SourceVB/My Project/AssemblyInfo.vb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Imports System.Runtime.InteropServices
1212
<Assembly: AssemblyDescription("Revit API Introduction Labs for VB")>
1313
<Assembly: AssemblyCompany("Autodesk Inc.")>
1414
<Assembly: AssemblyProduct("Revit API Introduction Labs for VB")>
15-
<Assembly: AssemblyCopyright("Copyright © 2009-2021 by Autodesk Inc.")>
15+
<Assembly: AssemblyCopyright("Copyright © 2009-2021 by Autodesk, Inc.")>
1616
<Assembly: AssemblyTrademark("")>
1717

1818
<Assembly: ComVisible(False)>

Labs/2_Revit_UI_API/SourceCS/2_Selection.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -413,9 +413,7 @@ public void CancelSelection()
413413
// TaskDialog.Show("Revit UI Lab", s);
414414
//}
415415

416-
/// Changing this in Revit 2015
417-
///
418-
public void ShowElementList(IEnumerable elemIds, string header)
416+
public void ShowElementList(IEnumerable<ElementId> elemIds, string header)
419417
{
420418
string s = "\n\n - Class - Category - Name (or Family: Type Name) - Id - " + "\r\n";
421419

@@ -432,8 +430,6 @@ public void ShowElementList(IEnumerable elemIds, string header)
432430
TaskDialog.Show("Revit UI Lab", s);
433431
}
434432

435-
/// end of Changing in Revit 2015
436-
437433
/// <summary>
438434
/// Helper function: summarize an element information as a line of text,
439435
/// which is composed of: class, category, name and id.

Labs/2_Revit_UI_API/SourceCS/UiCs.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@
6565
<RequiredTargetFramework>3.0</RequiredTargetFramework>
6666
</Reference>
6767
<Reference Include="RevitAPI">
68-
<HintPath>C:\Program Files\Autodesk\Revit 2020\RevitAPI.dll</HintPath>
68+
<HintPath>C:\Program Files\Autodesk\Revit 2021\RevitAPI.dll</HintPath>
6969
<Private>False</Private>
7070
</Reference>
7171
<Reference Include="RevitAPIUI">
72-
<HintPath>C:\Program Files\Autodesk\Revit 2020\RevitAPIUI.dll</HintPath>
72+
<HintPath>C:\Program Files\Autodesk\Revit 2021\RevitAPIUI.dll</HintPath>
7373
<Private>False</Private>
7474
</Reference>
7575
<Reference Include="System" />

Labs/2_Revit_UI_API/SourceVB/My Project/AssemblyInfo.vb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Imports System.Runtime.InteropServices
1212
<Assembly: AssemblyDescription("Revit API UI Labs for VB")>
1313
<Assembly: AssemblyCompany("Autodesk Inc.")>
1414
<Assembly: AssemblyProduct("Revit API UI Labs for VB")>
15-
<Assembly: AssemblyCopyright("Copyright © 2009-2021 by Autodesk Inc.")>
15+
<Assembly: AssemblyCopyright("Copyright © 2009-2021 by Autodesk, Inc.")>
1616
<Assembly: AssemblyTrademark("")>
1717

1818
<Assembly: ComVisible(False)>

Labs/2_Revit_UI_API/SourceVB/UiVb.vbproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@
7070
<RequiredTargetFramework>3.0</RequiredTargetFramework>
7171
</Reference>
7272
<Reference Include="RevitAPI">
73-
<HintPath>C:\Program Files\Autodesk\Revit 2020\RevitAPI.dll</HintPath>
73+
<HintPath>C:\Program Files\Autodesk\Revit 2021\RevitAPI.dll</HintPath>
7474
<Private>False</Private>
7575
</Reference>
7676
<Reference Include="RevitAPIUI">
77-
<HintPath>C:\Program Files\Autodesk\Revit 2020\RevitAPIUI.dll</HintPath>
77+
<HintPath>C:\Program Files\Autodesk\Revit 2021\RevitAPIUI.dll</HintPath>
7878
<Private>False</Private>
7979
</Reference>
8080
<Reference Include="System" />

Labs/3_Revit_Family_API/SourceCS/FamilyCs.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@
5757
</PropertyGroup>
5858
<ItemGroup>
5959
<Reference Include="RevitAPI">
60-
<HintPath>C:\Program Files\Autodesk\Revit 2020\RevitAPI.dll</HintPath>
60+
<HintPath>C:\Program Files\Autodesk\Revit 2021\RevitAPI.dll</HintPath>
6161
<Private>False</Private>
6262
</Reference>
6363
<Reference Include="RevitAPIUI">
64-
<HintPath>C:\Program Files\Autodesk\Revit 2020\RevitAPIUI.dll</HintPath>
64+
<HintPath>C:\Program Files\Autodesk\Revit 2021\RevitAPIUI.dll</HintPath>
6565
<Private>False</Private>
6666
</Reference>
6767
<Reference Include="System" />

Labs/3_Revit_Family_API/SourceVB/FamilyVb.vbproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@
6565
<RequiredTargetFramework>3.0</RequiredTargetFramework>
6666
</Reference>
6767
<Reference Include="RevitAPI">
68-
<HintPath>C:\Program Files\Autodesk\Revit 2020\RevitAPI.dll</HintPath>
68+
<HintPath>C:\Program Files\Autodesk\Revit 2021\RevitAPI.dll</HintPath>
6969
<Private>False</Private>
7070
</Reference>
7171
<Reference Include="RevitAPIUI">
72-
<HintPath>C:\Program Files\Autodesk\Revit 2020\RevitAPIUI.dll</HintPath>
72+
<HintPath>C:\Program Files\Autodesk\Revit 2021\RevitAPIUI.dll</HintPath>
7373
<Private>False</Private>
7474
</Reference>
7575
<Reference Include="System" />

0 commit comments

Comments
 (0)