mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-09-26 04:34:47 +00:00
integrate Revit 2025 SDK
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user