<?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 Acad Menus? in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/acad-menus/m-p/1729445#M23016</link>
    <description>Hello All,&lt;BR /&gt;
&lt;BR /&gt;
How would I go about inserting a menu item under the 'File' menu when there are no documents open? I tried using a 'AcApDocManagerReactor' and testing to see if the last document opened is being closed and inserting the menu item then, but AutoCAD crashes as soon as I try to insert the item. I am using the com interfaces and can insert the item when there drawings open but have difficulties with the 0 document environment. &lt;BR /&gt;
&lt;BR /&gt;
Thanks Alot!!&lt;BR /&gt;
Larry</description>
    <pubDate>Tue, 08 Aug 2006 15:57:14 GMT</pubDate>
    <dc:creator>cadMeUp</dc:creator>
    <dc:date>2006-08-08T15:57:14Z</dc:date>
    <item>
      <title>Acad Menus?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acad-menus/m-p/1729445#M23016</link>
      <description>Hello All,&lt;BR /&gt;
&lt;BR /&gt;
How would I go about inserting a menu item under the 'File' menu when there are no documents open? I tried using a 'AcApDocManagerReactor' and testing to see if the last document opened is being closed and inserting the menu item then, but AutoCAD crashes as soon as I try to insert the item. I am using the com interfaces and can insert the item when there drawings open but have difficulties with the 0 document environment. &lt;BR /&gt;
&lt;BR /&gt;
Thanks Alot!!&lt;BR /&gt;
Larry</description>
      <pubDate>Tue, 08 Aug 2006 15:57:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acad-menus/m-p/1729445#M23016</guid>
      <dc:creator>cadMeUp</dc:creator>
      <dc:date>2006-08-08T15:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Acad Menus?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acad-menus/m-p/1729446#M23017</link>
      <description>Hi iLarry&lt;BR /&gt;
&lt;BR /&gt;
I have seen ur query and we r also working on creating new menu  in Object Arx environment.can u please send us the code so that it will b helpful for us also.will u pls help us in this regard.&lt;BR /&gt;
&lt;BR /&gt;
We need it as soon as possible so pls do the needful.&lt;BR /&gt;
thanks&lt;BR /&gt;
sashi</description>
      <pubDate>Wed, 23 Aug 2006 09:24:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acad-menus/m-p/1729446#M23017</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-08-23T09:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Acad Menus?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acad-menus/m-p/1729447#M23018</link>
      <description>Hello sashidhar,&lt;BR /&gt;
&lt;BR /&gt;
This sample will add a menu item and a seperator under AutoCAD's 'File' menu.&lt;BR /&gt;
&lt;BR /&gt;
Here is what I have:&lt;BR /&gt;
&lt;BR /&gt;
---------------&lt;BR /&gt;
&lt;BR /&gt;
IDispatch *pDisp;&lt;BR /&gt;
CAcadApplication IApp;&lt;BR /&gt;
CAcadMenuBar IMenuBar;&lt;BR /&gt;
CAcadMenuGroup IMenuGroup;&lt;BR /&gt;
CAcadMenuGroups IMenuGroups;&lt;BR /&gt;
CAcadPopupMenu IMenu;&lt;BR /&gt;
CAcadPopupMenuItem IMenuItem;&lt;BR /&gt;
CAcadPopupMenus IMenus;&lt;BR /&gt;
&lt;BR /&gt;
pDisp = acedGetAcadWinApp()-&amp;gt;GetIDispatch(TRUE);&lt;BR /&gt;
IApp.AttachDispatch(pDisp);&lt;BR /&gt;
&lt;BR /&gt;
pDisp = IApp.get_MenuBar();&lt;BR /&gt;
IMenuBar.AttachDispatch(pDisp);&lt;BR /&gt;
&lt;BR /&gt;
pDisp = IMenuBar.Item(CComVariant(0));&lt;BR /&gt;
IMenu.AttachDispatch(pDisp);&lt;BR /&gt;
&lt;BR /&gt;
IMenu.AddSeparator(CComVariant(0));&lt;BR /&gt;
IMenu.AddMenuItem(CComVariant(0), "ITEM_NAME", "COMMAND_TO_RUN ");&lt;BR /&gt;
&lt;BR /&gt;
-----------&lt;BR /&gt;
&lt;BR /&gt;
Please note that the 'COMMAND_TO_RUN' should be a valid command string with a space at the end to signal the enter/return for autocad.&lt;BR /&gt;
&lt;BR /&gt;
Also I have include a zip file attachment. The files in the zip file need to be added to your project and '#include'ed where you plan to use the code. These are the generated com interfaces that were created when I added these classes to my project.&lt;BR /&gt;
&lt;BR /&gt;
I hope that it works for you ok!&lt;BR /&gt;
&lt;BR /&gt;
Larry</description>
      <pubDate>Wed, 23 Aug 2006 16:27:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acad-menus/m-p/1729447#M23018</guid>
      <dc:creator>cadMeUp</dc:creator>
      <dc:date>2006-08-23T16:27:06Z</dc:date>
    </item>
  </channel>
</rss>

