Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi forum. Im trying to access to the Addins folder in which my dlls are installed:
C:\ProgramData\Autodesk\Revit\Addins\2019
I have tried:
System.IO.Path.GetDirectoryName(Application.ExecutablePath);
wich output:
C:\Program Files\Autodesk\Revit 2019
And also tried:
Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)
wich output:
C:\ProgramData
I can certainly add "\Autodesk\Revit\Addins\2019\" to the last one, but I wouldnt want to add this manually cause maybe someone change the instalation folder (is this even possible?) or the addins folder. Is there a way to retrieve "C:\ProgramData\Autodesk\Revit\Addins\2019" or wherever my dlls is placed with a single command order to minimize errors?
Regards.
Solved! Go to Solution.