F1 Help rediricting me to Autodesk

F1 Help rediricting me to Autodesk

Moustafa_K
Advisor Advisor
754 Views
3 Replies
Message 1 of 4

F1 Help rediricting me to Autodesk

Moustafa_K
Advisor
Advisor

I do not know I am missing something or a it is a bug in Revit API. If I clicked on drop down button and hovered on any of my Application Icons it directs me to the correct help web site (provided in my code). but if I did not click on the drop down button and hovred the mouse on the application Icon in the ribbon panel and Hit F1 key, it directs me to Autodesk Help web site. is there any explaination for this? 

Moustafa Khalil
Cropped-Sharp-Bim-500x125-Autodesk-1
0 Likes
Accepted solutions (1)
755 Views
3 Replies
Replies (3)
Message 2 of 4

jeremytammik
Autodesk
Autodesk

Dear Moustafa,

 

Absolutely there is an explanation.

 

There is an explanation for almost everything, at least everything in the super-simple mostly predictable world ofdigital computers.

 

However, I do not yet quite know exactly what your question is.

 

Can you please describe more precisely what behaviour you are observing, what behaviour you are expecting, and what the difference is?

 

What exact buttons are you talking about, and what is the context in which you click them?

 

I guess and it rather sounds as if you have implemented support for F1 help and pointed it to your specific add-in help pages?

 

Thank you!

 

Best regards,

 

Jeremy



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

Message 3 of 4

Moustafa_K
Advisor
Advisor
Accepted solution

Apologies for unclarity.

 

I have a split button which contains multiple push button.

 

I have assigned each of push button Help URL context.

 

When I click on the arrow of the split button to show all the buttons and hover mouse pointer over one of these buttons then I hit F1, it directs me to the assigned URL perfectly.

 

but if I did not click on the split arrow andonly hovered mouse pointer over the Split button it directs me to Autodesk Help web page. 

 

I now realized that i also need to assign, Split button, a help context as well as for all Push Buttons. (I was missing the Last Line in the below Code)

 

 ContextualHelp hlp = new ContextualHelp(ContextualHelpType.Url, hlppath);
                    bone.SetContextualHelp(hlp);
                    btwo.SetContextualHelp(hlp);
                   bthree.SetContextualHelp(hlp);


                    SplitButtonData sb1 = new SplitButtonData("splitButton1", "Split");
                    sb1.SetContextualHelp(hlp);
                    SplitButton sb = panel.AddItem(sb1) as SplitButton;
                    sb.AddPushButton(bone);
                    sb.AddPushButton(btwo);
                    sb.AddPushButton(bthree);

                    sb.SetContextualHelp(hlp);

Thanks Jeremy

Moustafa Khalil
Cropped-Sharp-Bim-500x125-Autodesk-1
Message 4 of 4

jeremytammik
Autodesk
Autodesk

Dear Moustafa,

Thank you for your clarification and appreciation.

 

Congratulations on solving this and letting us know.

 

I am very glad it helped.

 

Best regards,

Jeremy



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

0 Likes