6 Replies Latest reply on Sep 30, 2011 7:09 AM by stanshel

    ArcMap IDs for ArcGIS 10

    fadhilkamil
      Hi!

      I'm trying to build the ArcMap Add-Ins using VB.NET.

      How to add command button "Undo", "Redo", and "Save" by using GUIDs? Is my code or GUIDs wrong?

      Below is my XML code; it only display "AddData', "ClearSelectionCommand" and "SelectAllCommand" button on my custom (add-ins) toolbar.

                <Items>
                  <Button refID="esriArcMapUI.ClearSelectionCommand" />
                  <Button refID="esriArcMapUI.SelectAllCommand" />
                  <!--File_AddData Command; refID can be GUID"-->
                  <Button refID="{E1F29C6B-4E6B-11D2-AE2C-080009EC732A}" />
                  <!--Edit_Undo Command; refID can be GUID"-->
                  <Button refID="{FBF8C3FB-0480-11D2-8D21-080009EE4E51}"/>
                  <!--Edit_Redo Command; refID can be GUID"-->
                  <Button refID="{FBF8C3FB-0480-11D2-8D21-080009EE4E51}"/>
                  <!--File_Save Command; refID can be GUID"-->
                  <Button refID="{119591DB-0255-11D2-8D20-080009EE4E51}"/>
                </Items>
        • Re: ArcMap IDs for ArcGIS 10
          svanesch-esristaff
          Hi. Adding the subtype attribute manually to the xml should make this work.  Note, the subtype attribute is missing from the schema at 10.0 but it is honored, I'll see about getting this fixed in sp2.

                  <Toolbar id="Steve" caption="Steve" showInitially="true">
                    <Items>
                      <Button refID="esriArcMapUI.ClearSelectionCommand" />
                      <Button refID="esriArcMapUI.SelectAllCommand" />
                      <!--File_AddData Command; refID can be GUID"-->
                      <Button refID="{E1F29C6B-4E6B-11D2-AE2C-080009EC732A}" subtype="1" />
                      <!--Edit_Undo Command; refID can be GUID"-->
                      <Button refID="{FBF8C3FB-0480-11D2-8D21-080009EE4E51}" subtype="1" />
                      <!--Edit_Redo Command; refID can be GUID"-->
                      <Button refID="{FBF8C3FB-0480-11D2-8D21-080009EE4E51}" subtype="1" />
                      <!--File_Save Command; refID can be GUID"-->
                      <Button refID="{119591DB-0255-11D2-8D20-080009EE4E51}" subtype="1" />
                    </Items>
                  </Toolbar>
                </Toolbars>
          • Re: ArcMap IDs for ArcGIS 10
            fadhilkamil
            Thanks vanesch! it's working now! :)

            Hi. Adding the subtype attribute manually to the xml should make this work.  Note, the subtype attribute is missing from the schema at 10.0 but it is honored, I'll see about getting this fixed in sp2.

                    <Toolbar id="Steve" caption="Steve" showInitially="true">
                      <Items>
                        <Button refID="esriArcMapUI.ClearSelectionCommand" />
                        <Button refID="esriArcMapUI.SelectAllCommand" />
                        <!--File_AddData Command; refID can be GUID"-->
                        <Button refID="{E1F29C6B-4E6B-11D2-AE2C-080009EC732A}" subtype="1" />
                        <!--Edit_Undo Command; refID can be GUID"-->
                        <Button refID="{FBF8C3FB-0480-11D2-8D21-080009EE4E51}" subtype="1" />
                        <!--Edit_Redo Command; refID can be GUID"-->
                        <Button refID="{FBF8C3FB-0480-11D2-8D21-080009EE4E51}" subtype="1" />
                        <!--File_Save Command; refID can be GUID"-->
                        <Button refID="{119591DB-0255-11D2-8D20-080009EE4E51}" subtype="1" />
                      </Items>
                    </Toolbar>
                  </Toolbars>
            • Re: ArcMap IDs for ArcGIS 10
              fadhilkamil
              BTW, is that possible to rename the existing caption of ESRI ArcMap GUID into my own custom name?

              e.g. I want to rename the "Open" caption into "Open Company Project MXD"

              <Toolbar id="Steve" caption="Steve" showInitially="true">
              <Items>
              <!--File_Open Command; refID can be GUID"-->
              <Button refID=" {119591DB-0255-11D2-8D20-080009EE4E51}" subtype="2" />
              </Items>
              </Toolbar>
              </Toolbars>
              • Re: ArcMap IDs for ArcGIS 10
                fadhilkamil
                Does anyone know how to rename the existing caption of ESRI ArcMap GUID into custom name?

                BTW, is that possible to rename the existing caption of ESRI ArcMap GUID into my own custom name?

                e.g. I want to rename the "Open" caption into "Open Company Project MXD"

                <Toolbar id="Steve" caption="Steve" showInitially="true">
                <Items>
                <!--File_Open Command; refID can be GUID"-->
                <Button refID=" {119591DB-0255-11D2-8D20-080009EE4E51}" subtype="2" />
                </Items>
                </Toolbar>
                </Toolbars>
                • Re: ArcMap IDs for ArcGIS 10
                  LokionNitrox
                  this may not be the right thread to follow on with this question, but anyway.  I've created an add in that I need to break out into any number of plug ins (I need to break them up for security purposes), but common to all of the plug ins is a Root Menu.  How do I get the particular subtype for a specific part of one of those plug ins?
                  • Re: ArcMap IDs for ArcGIS 10
                    stanshel
                    Why are the UIDs of the Undo and Redo commands the same?