Revit 2017 Contextual Help

Revit 2017 Contextual Help

Anonymous
Not applicable
496 Views
1 Reply
Message 1 of 2

Revit 2017 Contextual Help

Anonymous
Not applicable

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.

0 Likes
497 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk

Dear Ian,

 

Thank you for your query.

 

I absolutely understand and agree with your wish not to hard code the path.

 

However, I see no reason whatsoever why this code snippet should suddenly be failing in Revit 2017.

 

Can you please isolate the problem in a new minimal sample add-in and provide a reproducible case for us to analyse?

 

http://thebuildingcoder.typepad.com/blog/about-the-author.html#1b

 

Thank you!

 

I hope this helps.

 

Best regards,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes