<?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 Re: Need ProgID for context menu properties command in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-progid-for-context-menu-properties-command/m-p/582991#M15775</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Interesting alternative Grieck&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I never found a list so I do this: simply write a couple lines of code to GET the CLSID based on any Namespace, Class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example: AccessWorkspaceFactoryClass&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim objFactory As ESRI.ArcGIS.Framework.IObjectFactory = TryCast(m_application, ESRI.ArcGIS.Framework.IObjectFactory)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim AccessWkspFactType As Type = GetType(ESRI.ArcGIS.DataSourcesGDB.AccessWorkspaceFactoryClass)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim typeClsID As String = AccessWkspFactType.GUID.ToString("B")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim workspaceFactory As ESRI.ArcGIS.Geodatabase.IWorkspaceFactory = DirectCast(objFactory.Create(typeClsID), ESRI.ArcGIS.Geodatabase.IWorkspaceFactory)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 01:04:01 GMT</pubDate>
    <dc:creator>MichaelRobb</dc:creator>
    <dc:date>2021-12-12T01:04:01Z</dc:date>
    <item>
      <title>Need ProgID for context menu properties command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-progid-for-context-menu-properties-command/m-p/582988#M15772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This doesn't seem to be in the list of ProgIDs in the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Names_and_IDs/000100000m60000000/"&gt;SDK help&lt;/A&gt;&lt;SPAN&gt;. I need to add the "Properties" command&amp;nbsp; into an add-in I'm developing. In Arcmap, it's found on the context menu when you right-click on a selected graphic element.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone know the ProgID or the CLSID for it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 14:10:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-progid-for-context-menu-properties-command/m-p/582988#M15772</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2011-09-27T14:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need ProgID for context menu properties command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-progid-for-context-menu-properties-command/m-p/582989#M15773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Steve,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe this is the CLSID you are looking for.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{BD43551C-5313-11D2-87B8-0000F8751720}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is how you find it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In ArcMap go to Customize &amp;gt; Customize Mode&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When the Customize window opens on the Toolbars tab place a check in the Context Menus box.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A Context Menu opens, click on the drop down icon&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the fun part - find the context menu you are looking for matching it up exactly. In this case "Element Context Menu". Once you have that name open RegEdit and search for the name you just found.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know you are looking for the "Properties" menu, that should be a subtype off of the CLSID you find.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TIP: Capture a screen shot of the Context Menu you are looking for so you can make sure you have the correct menu.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good Luck,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NOTE: If you don't find the context menu you are looking for in the list of Context Menus then it means that the context menu is not customizable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;G&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 14:54:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-progid-for-context-menu-properties-command/m-p/582989#M15773</guid>
      <dc:creator>GregRieck</dc:creator>
      <dc:date>2011-09-27T14:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need ProgID for context menu properties command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-progid-for-context-menu-properties-command/m-p/582990#M15774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well I would have never thought to do this so thanks for the tip. The CLSID you provided does work but it displays the entire context menu, not the individual Properties command on it. I searched the Registry as you suggested and finally found the CLSID:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{92D490B7-DF9D-11D1-8779-0000F8751720}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tried it out and it works. Thanks again!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 16:05:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-progid-for-context-menu-properties-command/m-p/582990#M15774</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2011-09-27T16:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need ProgID for context menu properties command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-progid-for-context-menu-properties-command/m-p/582991#M15775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Interesting alternative Grieck&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I never found a list so I do this: simply write a couple lines of code to GET the CLSID based on any Namespace, Class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example: AccessWorkspaceFactoryClass&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim objFactory As ESRI.ArcGIS.Framework.IObjectFactory = TryCast(m_application, ESRI.ArcGIS.Framework.IObjectFactory)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim AccessWkspFactType As Type = GetType(ESRI.ArcGIS.DataSourcesGDB.AccessWorkspaceFactoryClass)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim typeClsID As String = AccessWkspFactType.GUID.ToString("B")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim workspaceFactory As ESRI.ArcGIS.Geodatabase.IWorkspaceFactory = DirectCast(objFactory.Create(typeClsID), ESRI.ArcGIS.Geodatabase.IWorkspaceFactory)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:04:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-progid-for-context-menu-properties-command/m-p/582991#M15775</guid>
      <dc:creator>MichaelRobb</dc:creator>
      <dc:date>2021-12-12T01:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need ProgID for context menu properties command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-progid-for-context-menu-properties-command/m-p/582992#M15776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Mike,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My response is based on the same issue I had finding a GUID. Please see &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/16225-Customize-Context-Menus"&gt;Customize Context Menus?&lt;/A&gt;&lt;SPAN&gt;. Where John Hauck (ESRI) explained that the only context menus that can be customized are the ones that appear in the list. Following John's approach I have been very successful in customizing many of the context menus. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I do like your programmatic approach it just lacks the verification of customization as explained by John.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;G&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 14:47:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-progid-for-context-menu-properties-command/m-p/582992#M15776</guid>
      <dc:creator>GregRieck</dc:creator>
      <dc:date>2011-09-29T14:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need ProgID for context menu properties command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-progid-for-context-menu-properties-command/m-p/582993#M15777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Griek, this is very helpful and John Hauck's approach makes more sense than pro grammatically determining GUID/ CLSID without validation. I myself will start to use this approach.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I had removed the post prior as I wanted to look into this further, but you had beat me to the punch of responding.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(So for anyone else reading this) I had briefly posted explaining ways of gathering the GUID clsID through namespace classnames)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2011 13:58:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-progid-for-context-menu-properties-command/m-p/582993#M15777</guid>
      <dc:creator>MichaelRobb</dc:creator>
      <dc:date>2011-09-30T13:58:06Z</dc:date>
    </item>
  </channel>
</rss>

