Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Open a cutsom chm file ribbon button

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
warrenjbarnes
512 Views, 5 Replies

Open a cutsom chm file ribbon button

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 

Tags (3)
5 REPLIES 5
Message 2 of 6
peterjegan
in reply to: warrenjbarnes

Try System.Diagnostics.Process.Start(filename)

Message 3 of 6
Anonymous
in reply to: warrenjbarnes

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,

Message 4 of 6
warrenjbarnes
in reply to: peterjegan

Thanks, exactly what I was looking for

Message 5 of 6
warrenjbarnes
in reply to: Anonymous

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

Message 6 of 6
Anonymous
in reply to: Anonymous

yes i also looking that

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community