integrate Revit 2025 SDK

This commit is contained in:
Jeremy Tammik
2024-04-11 13:47:20 +02:00
parent e786953544
commit f414362f2b
889 changed files with 26676 additions and 26865 deletions
+1 -15
View File
@@ -77,7 +77,7 @@ namespace Revit.SDK.Samples.SinePlotter.CS
{
assemblyPath = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
assemblyName = Assembly.GetExecutingAssembly().GetName().Name + ".dll";
imageFolder = GetProjectDirectory() + "/Resources/";
imageFolder = assemblyPath + "/Resources/";
//add a panel to go on the Add-In tab
RibbonPanel panel = application.CreateRibbonPanel("ArrayPrismsOnASineCurve");
@@ -316,20 +316,6 @@ namespace Revit.SDK.Samples.SinePlotter.CS
}
}
/// <summary>
/// Returns the path of the main project directory.
/// </summary>
/// <returns>A string object corresponding to the full path of the main project directory.</returns>
private String GetProjectDirectory()
{
//get the absolut path of the assembly
string assemblyPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
//move two directory levels back
String grandParentDir = Directory.GetParent(assemblyPath).Parent.FullName;
return grandParentDir;
}
#endregion
}
}