Message 1 of 2
Revit 2017 Contextual Help

Not applicable
04-28-2016
04:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm having issues with contextual help in Revit 2017. The line of code that I use is:
string path = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
ContextualHelp contextHelp = new ContextualHelp(ContextualHelpType.ChmFile, path + "/../Help.html");
As you can see, my executing DLL file is in a child folder of where the contextual help file is. This code has worked for me in Revit 2014,2015,2016 but not 2017. I'd prefer not to hard code the path incase the user has a different name for their harddrive. Any suggestions would be appreciated. Thx.