I am new to the Revit API. I have gone through the first tutorials and created a button in the revit ribbon that opens the "helloworld" task dialogue. I have created a custom chm help file and would like the button to open this file instead but cannot find the code. Can anyone help?
Thanks. Warren
Solved! Go to Solution.
Solved by warrenjbarnes. Go to Solution.
Hi Warren,
You need to use ContextualHelp class to associate custom help.
ContextualHelp
contextHelp = newContextualHelp(ContextualHelpType.ChmFile, @"C:\Demo.chm");
pushButtonHello.SetContextualHelp(contextHelp);
I have posted the relevant code snippet in our AEC DevBlog -
http://adndevblog.typepad.com/aec/2014/03/opening-a-custom-chm-file-from-ribbon-button-in-revit.html
Thanks,
Not exactly what I was after as far as I can see. I just wanted to open the chm file by pressing the button. Thanks anyway