Select to view content in your preferred language

Data View Context Menu GUID and Name

635
2
01-21-2011 12:04 AM
by Anonymous User
Not applicable
Hi!

I'm trying to extend the Data View Context Menu in ArcMap programmatically using C#:



I know from this thread "Data View Context Menu UID" that the GUID for the Data View Context Menu is "3846A5B5-D3F8-44CB-BFA3-A5C30F4E535F".

I have searched for this GUID via Google and the ESRI Forums, but I can't find any reference to it.

Neither the GUID nor the name is listed in the General Reference - Names and IDs in ArcMap.

Could you tell me the name or a reason why I can't find any reference?

Best regards,
Christian
0 Kudos
2 Replies
NeilClemmons
Honored Contributor
If you're trying to customize the menu then I'm assuming that you're trying to get a reference to the menu so you can add something to it.  If that's the case then you don't need the name.  The GUID will work just fine.  Also, if you have the GUID of a class you can always look it up in the system registry.  The class name according to the registry is esriArcMapUI.MapViewCommandsContextMenu.

Dim uid As New UID
uid.Value = "{3846A5B5-D3F8-44CB-BFA3-A5C30F4E535F}"
Dim commandItem As ICommandItem = application.Document.CommandBars.Find(uid)
0 Kudos
by Anonymous User
Not applicable
Hi Neil,

thank you for your response. I wasn't aware that one can lookup the name in the Windows registry:



In the meantime I was able to expand the menu with just the GUID as you mentioned.

Best regards,
Christian
0 Kudos