<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Autodesk.AutoCAD.Ribbon in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-ribbon/m-p/4653889#M46741</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to associate F1 help to a ribbon button.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;found this article&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://adndevblog.typepad.com/autocad/2012/09/associating-f1-help-with-ribbon-button.html"&gt;http://adndevblog.typepad.com/autocad/2012/09/associating-f1-help-with-ribbon-button.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using VB2010 express with AutoCAD 2013. Along with the usual acmgd.dll, acdbmgd.dll, accoremgd.dll, I am referencing AcCui.dll and AdWindows.dll&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I need to know is what reference I need to be able to see Autodesk.AutoCAD.Ribbon in intellisense.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks In advance.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Nov 2013 17:31:26 GMT</pubDate>
    <dc:creator>GeeHaa</dc:creator>
    <dc:date>2013-11-26T17:31:26Z</dc:date>
    <item>
      <title>Autodesk.AutoCAD.Ribbon</title>
      <link>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-ribbon/m-p/4653889#M46741</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to associate F1 help to a ribbon button.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;found this article&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://adndevblog.typepad.com/autocad/2012/09/associating-f1-help-with-ribbon-button.html"&gt;http://adndevblog.typepad.com/autocad/2012/09/associating-f1-help-with-ribbon-button.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using VB2010 express with AutoCAD 2013. Along with the usual acmgd.dll, acdbmgd.dll, accoremgd.dll, I am referencing AcCui.dll and AdWindows.dll&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I need to know is what reference I need to be able to see Autodesk.AutoCAD.Ribbon in intellisense.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks In advance.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2013 17:31:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-ribbon/m-p/4653889#M46741</guid>
      <dc:creator>GeeHaa</dc:creator>
      <dc:date>2013-11-26T17:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.AutoCAD.Ribbon</title>
      <link>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-ribbon/m-p/4654433#M46742</link>
      <description>&lt;P&gt;The Autodesk.AutoCAD.Ribbon namespace is contained within AcWindows.dll.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2013 22:08:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-ribbon/m-p/4654433#M46742</guid>
      <dc:creator>StephenPreston</dc:creator>
      <dc:date>2013-11-26T22:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.AutoCAD.Ribbon</title>
      <link>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-ribbon/m-p/4656899#M46743</link>
      <description>&lt;P&gt;Thanks very Much that did the trick. I tried to translate the C# into Vb.net But I'm getting the following error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unable to cast object of type 'F1_Help.AdskCommandHandler' to type 'System.Windows.Input.ICommand'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any Help would be much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;  &amp;lt;CommandMethod("CRB")&amp;gt; _
    Public Sub CRB()

        Dim ribCntrl As Autodesk.Windows.RibbonControl = Autodesk.AutoCAD.Ribbon.RibbonServices.RibbonPaletteSet.RibbonControl
        Dim ribTab As RibbonTab = New RibbonTab
        ribTab.Title = "F1 Help Test"
        ribTab.Id = "My_Tab_ID"
        ribCntrl.Tabs.Add(ribTab)

        Dim ribSourcePanel As Autodesk.Windows.RibbonPanelSource = New RibbonPanelSource
        ribSourcePanel.Title = "Controls"
        Dim ribPanel As RibbonPanel = New RibbonPanel
        ribPanel.Source = ribSourcePanel
        ribTab.Panels.Add(ribPanel)
        Dim ribToolTip As RibbonToolTip = New RibbonToolTip

        ribToolTip.Command = "My Command"
        ribToolTip.Title = "My Title"
        ribToolTip.Content = "My Content"
        ribToolTip.ExpandedContent = "my Expanded Content !"

        'enable f1 Help
        ribToolTip.IsHelpEnabled = True
        Dim ribRow1 As RibbonRowPanel = New RibbonRowPanel
        ribRow1.Tag = "Row1"

        Dim ribButton As RibbonButton = New RibbonButton
        ribButton.Text = "PLINE"
        ribButton.ShowText = True
        ribButton.CommandParameter = "\Xlb\Xlb_PLINE"
        ribButton.CommandHandler = New AdskCommandHandler
        ribButton.HelpSource = New System.Uri("C:\Contents\Sample.chm", UriKind.RelativeOrAbsolute)
        ribButton.HelpTopic = "Sanmple"
        ribButton.IsToolTipEnabled = True
        ribButton.ToolTip = ribToolTip
        ribSourcePanel.Items.Add(ribButton)
        ribTab.IsActive = True

    End Sub

End Class
Public Class AdskCommandHandler
    'Implements System.Windows.Input.ICommand
    Public Function CanExecute(ByVal parameter As Object) As Boolean
        Return True
    End Function
    Public Event CanExecuteChanged As EventHandler
    Public Sub Execute(ByVal parameter As Object)
        Dim ribBtn As Autodesk.Windows.RibbonButton = TryCast(parameter, Autodesk.Windows.RibbonButton)
        If ribBtn.CommandParameter.ToString &amp;lt;&amp;gt; "" Then
            Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.SendStringToExecute(ribBtn.CommandParameter.ToString, True, False, True)
        End If
    End Sub

End Class&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2013 20:16:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-ribbon/m-p/4656899#M46743</guid>
      <dc:creator>GeeHaa</dc:creator>
      <dc:date>2013-11-27T20:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.AutoCAD.Ribbon</title>
      <link>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-ribbon/m-p/4662909#M46744</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please try this VB.Net code for the command handler class ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Public Class AdskCommandHandler
    Implements System.Windows.Input.ICommand
    Public Function CanExecute(ByVal parameter As Object) _
 As Boolean Implements System.Windows.Input.ICommand.CanExecute
        Return True
    End Function

    Public Event CanExecuteChanged( _
ByVal sender As Object, ByVal e As System.EventArgs) _
Implements System.Windows.Input.ICommand.CanExecuteChanged


    Public Sub Execute(ByVal parameter As Object) _
Implements System.Windows.Input.ICommand.Execute
        Dim ribBtn As Autodesk.Windows.RibbonButton = TryCast(parameter, Autodesk.Windows.RibbonButton)
        If ribBtn.CommandParameter.ToString &amp;lt;&amp;gt; "" Then
            Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.SendStringToExecute(ribBtn.CommandParameter.ToString, True, False, True)
        End If
    End Sub

End Class&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Sat, 30 Nov 2013 21:30:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-ribbon/m-p/4662909#M46744</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2013-11-30T21:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.AutoCAD.Ribbon</title>
      <link>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-ribbon/m-p/4681939#M46745</link>
      <description>&lt;P&gt;Thanks that worked. It creates a new ribbon tab etc. and the chm file comes up when I hit F1 help. But I can't find the tab or panel in the CUI. and if I close AutoCAD and reopen It is gone. Do I need to somehow attach it to a workspace?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Again.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2013 15:37:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-ribbon/m-p/4681939#M46745</guid>
      <dc:creator>GeeHaa</dc:creator>
      <dc:date>2013-12-09T15:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.AutoCAD.Ribbon</title>
      <link>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-ribbon/m-p/4683677#M46746</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are two different sets of API to work with ribbons in AutoCAD. The runtime ribbon API and the CUI API. The sample code that is being used here is the ribbon runtime API and the ribbon tabs created using it are not saved in the CUIx file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When using the runtime ribbon API, it is needed to setup your command for load at AutoCAD startup. This is to ensure that those ribbon tabs get created everytime AutoCAD starts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Balaji&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2013 09:51:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-ribbon/m-p/4683677#M46746</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2013-12-10T09:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.AutoCAD.Ribbon</title>
      <link>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-ribbon/m-p/4686449#M46747</link>
      <description>&lt;P&gt;Is there a way to associate F1 help to a button using the CUI API?&amp;nbsp;I've been looking through the properties and I don't see anything like helpsource.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I could do it without a program that would be fine too. At the end of the day what I need is to have a CUIx file where F1 Help for buttons is associated with a CHM file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Again&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2013 12:21:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-ribbon/m-p/4686449#M46747</guid>
      <dc:creator>GeeHaa</dc:creator>
      <dc:date>2013-12-11T12:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.AutoCAD.Ribbon</title>
      <link>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-ribbon/m-p/4687121#M46748</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I would suggest using the AutoLoader to deploy your application. The PackageContents.xml can be modified to associate F1 help topics.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://adndevblog.typepad.com/autocad/2012/04/autoloaderf1-help-integration.html" target="_blank"&gt;http://adndevblog.typepad.com/autocad/2012/04/autoloaderf1-help-integration.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;But if you need to do this from the CUI dialog, then it&amp;nbsp;&lt;SPAN style="font-size: 14px; line-height: 15px;"&gt;can be done by associating an extended help xaml file for your command.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can find a sample extended help xaml file here :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%202010%20User%20Documentation/index.html?url=WS1a9193826455f5ffba22e1113c6c30c0e-39dc.htm,topicNumber=d0e376084" target="_blank"&gt;http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%202010%20User%20Documentation/index.html?url=WS1a9193826455f5ffba22e1113c6c30c0e-39dc.htm,topicNumber=d0e376084&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To associate F1 help, you will need the line in the above post to be modified as&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;src:RibbonToolTip x:Key="MYEH_CMD_0002" HelpSource = "ToolTipDemo.chm" HelpTopic = "CreateLayer"&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 14px; line-height: 15px;"&gt;Unfortunately the HelpTopic does not get recognised although the chm opens on pressing F1.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 14px; line-height: 15px;"&gt;For this we have a request logged with our engineering team.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 14px; line-height: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 14px; line-height: 15px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Balaji&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 14px; line-height: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2013 16:22:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-ribbon/m-p/4687121#M46748</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2013-12-11T16:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.AutoCAD.Ribbon</title>
      <link>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-ribbon/m-p/4687645#M46749</link>
      <description>&lt;P&gt;Thanks this is exactly what I needed Thank You!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2013 20:09:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-ribbon/m-p/4687645#M46749</guid>
      <dc:creator>GeeHaa</dc:creator>
      <dc:date>2013-12-11T20:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.AutoCAD.Ribbon</title>
      <link>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-ribbon/m-p/5226149#M46750</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/765444"&gt;@Balaji_Ram&lt;/a&gt; wrote:&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px; line-height: 15px;"&gt;Unfortunately the HelpTopic does not get recognised&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px; line-height: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Any news on this?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2014 13:45:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-ribbon/m-p/5226149#M46750</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-21T13:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.AutoCAD.Ribbon</title>
      <link>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-ribbon/m-p/5521291#M46751</link>
      <description>&lt;P&gt;Maybe a little late, but here is a solution (rather dirty, though) to having F1 on ribbon button tooltips open a URL:&amp;nbsp;&lt;A target="_blank" href="https://forums.autodesk.com/t5/net/getting-ribbon-help-to-call-html/m-p/4943910#M40083"&gt;https://forums.autodesk.com/t5/net/getting-ribbon-help-to-call-html/m-p/4943910#M40083&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But from AutoCAD 2015, I understand this is not necessary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Knut&lt;/P&gt;</description>
      <pubDate>Thu, 26 Feb 2015 13:57:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-ribbon/m-p/5521291#M46751</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-26T13:57:32Z</dc:date>
    </item>
  </channel>
</rss>

