<?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 Ribbon Customization-Can't find commands in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/ribbon-customization-can-t-find-commands/m-p/4785183#M45650</link>
    <description>&lt;P&gt;I am trying to add a Ribbon Panel with commands from a .Net AutoCAD extension and I cannot find the commands in the command list area of the Customize User Interface Dialog.&lt;/P&gt;&lt;P&gt;I have loaded the extension using the netload command and the custom commands appear at the command line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where do I need to look to find these commands?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jan 2014 19:04:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-01-30T19:04:27Z</dc:date>
    <item>
      <title>Ribbon Customization-Can't find commands</title>
      <link>https://forums.autodesk.com/t5/net-forum/ribbon-customization-can-t-find-commands/m-p/4785183#M45650</link>
      <description>&lt;P&gt;I am trying to add a Ribbon Panel with commands from a .Net AutoCAD extension and I cannot find the commands in the command list area of the Customize User Interface Dialog.&lt;/P&gt;&lt;P&gt;I have loaded the extension using the netload command and the custom commands appear at the command line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where do I need to look to find these commands?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2014 19:04:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ribbon-customization-can-t-find-commands/m-p/4785183#M45650</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-30T19:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Ribbon Customization-Can't find commands</title>
      <link>https://forums.autodesk.com/t5/net-forum/ribbon-customization-can-t-find-commands/m-p/4785267#M45651</link>
      <description>&lt;P&gt;Unless the DLL adds the command references&amp;nbsp;to the CUIx, you need to add them yourself.&amp;nbsp; As the phrase suggests the CUIx contains command references which define which AutoCAD command to call when the tool is clicked.&amp;nbsp; It doesn't define or contain&amp;nbsp;the commands themselves.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2014 19:31:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ribbon-customization-can-t-find-commands/m-p/4785267#M45651</guid>
      <dc:creator>dgorsman</dc:creator>
      <dc:date>2014-01-30T19:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Ribbon Customization-Can't find commands</title>
      <link>https://forums.autodesk.com/t5/net-forum/ribbon-customization-can-t-find-commands/m-p/4804625#M45652</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As "dgorsman" mentioned, you will need the CUI API to do this.&lt;/P&gt;
&lt;P&gt;Here is a code snippet :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;// AcCui.dll
using Autodesk.AutoCAD.Customization; 

[CommandMethod("MYTESTCOMMAND")]
public void MyTestCommandMethod()
{
    Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;
    ed.WriteMessage("MyTestCommand");
}

[CommandMethod("CreateCommand")]
public void CreateCommandMethod()
{
    Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;

    String mainCuiFile = String.Format("{0}.cuix", Application.GetSystemVariable("MENUNAME"));

    CustomizationSection cs = new CustomizationSection(mainCuiFile);

    MacroGroup macGroup = cs.MenuGroup.MacroGroups[0];

    MenuMacro menuMac;

    menuMac = macGroup.CreateMenuMacro("MYTESTCOMMAND", "^C^C_MYTESTCOMMAND ", "MYTESTCOMMAND", "My custom command", MacroType.Any, "RCDATA_16_LINE", "RCDATA_32_LINE", "ID_MYTESTCOMMAND");

    menuMac.ElementID = "ID_MYTESTCOMMAND";
    menuMac.macro.CLICommand = "MYTESTCOMMAND";

    cs.Save();
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2014 07:42:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ribbon-customization-can-t-find-commands/m-p/4804625#M45652</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2014-02-10T07:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Ribbon Customization-Can't find commands</title>
      <link>https://forums.autodesk.com/t5/net-forum/ribbon-customization-can-t-find-commands/m-p/4805417#M45653</link>
      <description>&lt;P&gt;I had one of those "Duh" moments. after reading your reply.&amp;nbsp; I can't find the commands for my extension because I have to create them. I appreciate all of the replies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Toren&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2014 14:06:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ribbon-customization-can-t-find-commands/m-p/4805417#M45653</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-10T14:06:44Z</dc:date>
    </item>
  </channel>
</rss>

