Skip to content

Commit

Permalink
Button "Import Terrain data" for RVT 2023 and RVT 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
FlixGru committed Oct 10, 2023
1 parent c6f2fdb commit 540f930
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CityBIM/CityBIM.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<PackageReference Include="netDXF" Version="2022.11.2" />
<PackageReference Include="NetTopologySuite" Version="2.5.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Revit_All_Main_Versions_API_x64" Version="2022.0.0" ExcludeAssets="runtime" />
<PackageReference Include="Revit_All_Main_Versions_API_x64" Version="2023.0.0" ExcludeAssets="runtime" />
<PackageReference Include="Serilog" Version="3.0.1" />
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />
<PackageReference Include="System.Buffers" Version="4.5.1" />
Expand Down
2 changes: 1 addition & 1 deletion CityBIM/GUI/UI_PlugIn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public Result OnStartup(UIControlledApplication application)

#region Terrain panel
RibbonPanel panelTerrain = application.CreateRibbonPanel(tabName, "DTM2BIM");
PushButton buttonDTM = panelTerrain.AddItem(new PushButtonData("DTM_Importer", "Import Terrian data", thisAssemblyPath, "CityBIM.GUI.Cmd_ReadTerrain")) as PushButton;
PushButton buttonDTM = panelTerrain.AddItem(new PushButtonData("DTM_Importer", "Import Terrain data", thisAssemblyPath, "CityBIM.GUI.Cmd_ReadTerrain")) as PushButton;
buttonDTM.ToolTip = "Import functionality for Digital Terrain Models from different file formats.";
buttonDTM.LargeImage = getBitmapFromResx(ResourcePictures.DTM_32px_96dpi);
#endregion Terrain panel
Expand Down
8 changes: 8 additions & 0 deletions CityBIM/utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,8 @@ public enum rvtVersion
R20 = 2020,
R21 = 2021,
R22 = 2022,
R23 = 2023,
R24 = 2024,

/// <summary>
/// if this is selected give an information that it is currently not supported
Expand Down Expand Up @@ -460,6 +462,12 @@ public static rvtVersion GetVersionInfo(Autodesk.Revit.ApplicationServices.Appli
case 2022:
rV = rvtVersion.R22;
break;
case 2023:
rV = rvtVersion.R23;
break;
case 2024:
rV = rvtVersion.R23;
break;
default:
rV = 0;
break;
Expand Down
2 changes: 1 addition & 1 deletion CityBIM_InstallerWix4/Package.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<Directory Id="AutodeskDir" Name="Autodesk">
<Directory Id="RevitDir" Name="Revit">
<Directory Id="AddinDir" Name="Addins">
<Directory Id="YearDir" Name="2022">
<Directory Id="YearDir" Name="2023">
<Directory Id="APPLICATIONFOLDER" Name="CityBIM" ComponentGuidGenerationSeed="{D2926053-BC1E-4980-8276-00FD3B563132}">
</Directory>
</Directory>
Expand Down
2 changes: 1 addition & 1 deletion DataCatPlugin/DataCatPlugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
<PackageReference Include="RestSharp" Version="106.15.0" />
<PackageReference Include="Revit_All_Main_Versions_API_x64" Version="2022.0.0" ExcludeAssets="runtime" />
<PackageReference Include="Revit_All_Main_Versions_API_x64" Version="2023.0.0" ExcludeAssets="runtime" />
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.26.0" />
<PackageReference Include="Xbim.Essentials" Version="5.1.341" />
Expand Down

0 comments on commit 540f930

Please sign in to comment.