<?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 Can't Remove a Menu in Python Add-in (Answered) in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/can-t-remove-a-menu-in-python-add-in-answered/m-p/344284#M26981</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Python add-in with a good amount of buttons and menus. I'm trying to remove a menu using the addin_assistant, but the menu isn't being removed from config.xml. I've tried removing the add-in in ArcMap and re-adding it, but that didn't help.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The process I'm doing:&lt;/P&gt;&lt;P&gt;1. Open the Python Add-in Wizard, browse to my add-in folder.&lt;/P&gt;&lt;P&gt;2. Find the menu. Right click and Remove.&lt;/P&gt;&lt;P&gt;3. Save. Click OK for the backup warning message.&lt;/P&gt;&lt;P&gt;4. The config.xml document date is modified automatically by saving.&lt;/P&gt;&lt;P&gt;5. Open the XML and see that the menu is not removed.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quick thoughts:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I've tried restarting my computer.&lt;/LI&gt;&lt;LI&gt;I've removed buttons successfully.&lt;/LI&gt;&lt;LI&gt;I can't remake the add-in every time I want to remove a menu.&lt;/LI&gt;&lt;LI&gt;Customize Mode -&amp;gt; Delete for the menu (in ArcMap) isn't feasible because this add-in will be distributed to hundreds of users.&lt;/LI&gt;&lt;/UL&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts? Please let me know if you need more info.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Edit&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Editing the XML to remove the menu and manually re-installing the add-in via the esri addin file is a viable work around at the moment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2019 Edit:&amp;nbsp;&lt;/STRONG&gt;I realized I never followed up on this. This is marked as a bug -&amp;nbsp;&lt;A href="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDA4MjM1MQ=="&gt;https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDA4MjM1MQ==&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The workaround is the adjust the config.xml file to remove and add buttons, menus, etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Sep 2014 19:12:28 GMT</pubDate>
    <dc:creator>DanielOliva</dc:creator>
    <dc:date>2014-09-30T19:12:28Z</dc:date>
    <item>
      <title>Can't Remove a Menu in Python Add-in (Answered)</title>
      <link>https://community.esri.com/t5/python-questions/can-t-remove-a-menu-in-python-add-in-answered/m-p/344284#M26981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Python add-in with a good amount of buttons and menus. I'm trying to remove a menu using the addin_assistant, but the menu isn't being removed from config.xml. I've tried removing the add-in in ArcMap and re-adding it, but that didn't help.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The process I'm doing:&lt;/P&gt;&lt;P&gt;1. Open the Python Add-in Wizard, browse to my add-in folder.&lt;/P&gt;&lt;P&gt;2. Find the menu. Right click and Remove.&lt;/P&gt;&lt;P&gt;3. Save. Click OK for the backup warning message.&lt;/P&gt;&lt;P&gt;4. The config.xml document date is modified automatically by saving.&lt;/P&gt;&lt;P&gt;5. Open the XML and see that the menu is not removed.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quick thoughts:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I've tried restarting my computer.&lt;/LI&gt;&lt;LI&gt;I've removed buttons successfully.&lt;/LI&gt;&lt;LI&gt;I can't remake the add-in every time I want to remove a menu.&lt;/LI&gt;&lt;LI&gt;Customize Mode -&amp;gt; Delete for the menu (in ArcMap) isn't feasible because this add-in will be distributed to hundreds of users.&lt;/LI&gt;&lt;/UL&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts? Please let me know if you need more info.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Edit&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Editing the XML to remove the menu and manually re-installing the add-in via the esri addin file is a viable work around at the moment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2019 Edit:&amp;nbsp;&lt;/STRONG&gt;I realized I never followed up on this. This is marked as a bug -&amp;nbsp;&lt;A href="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDA4MjM1MQ=="&gt;https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDA4MjM1MQ==&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The workaround is the adjust the config.xml file to remove and add buttons, menus, etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 19:12:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-t-remove-a-menu-in-python-add-in-answered/m-p/344284#M26981</guid>
      <dc:creator>DanielOliva</dc:creator>
      <dc:date>2014-09-30T19:12:28Z</dc:date>
    </item>
  </channel>
</rss>

