AnsweredAssumed Answered

Identify Route Location GUID different in .NET?

Question asked by evtguy on Jun 6, 2014
Latest reply on Jun 6, 2014 by evtguy
Finally getting around to porting a VBA based toolset to an addin using .NET. On a dialog, I include a button for my users to quickly change their active tool to ESRI's Route Identify tool. Under VBA, this was referenced as arcid.Lr_Route_Identify and the UID was/is "{6C3CC7D2-0EA4-43A0-88C3-911FEDCBF268}".

I'm trying to do the same thing on the .NET side but that UID isn't listed in the documentation. The tool still exists so I'm not sure what to do here.

My little .NET code is like this:
    Private Sub cmdRteIdentify_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdRteIdentify.Click         Try             'Changes the current tool to the Route Identify Tool             Dim application = My.ArcMap.Application             Dim pUID As New UID              pUID.Value = "esriArcMapUI.SelectTool"             application.CurrentTool = application.Document.CommandBars.Find(pUID)         Catch ex As Exception             globalErrorHandler(ex)         End Try     End Sub


Should I just use the "{...}" value in my routine and just ignore the fact that I can't find the appropriate "esriArcMapUI.x" equivalent? I like using the latter since it's a bit more reader friendly for understanding the code later on down the line.

Thanks!
Steve

Outcomes