Select to view content in your preferred language

Find Linear Referencing Command

3521
1
09-19-2014 08:18 AM
CraigGallant
Deactivated User

Is there a way through ArcObjects to run the “Find –Linear Referencing”
command? I don’t want to use the locate features tool because I don’t want to
create a table. I just want the user to user to change a couple comboboxes on
my form and search for a match, then give them the option to flash the location
or draw a graphic at that location. Like is done in the bottom of the Find
Dialog though I want to use my own form and not the Find Dialog. If this cannot
be done in C# and  .Net is it possible in
Python?

Thanks,

Craig

0 Kudos
1 Reply
DuncanHornby
MVP Notable Contributor

The follow VBA code shows you how to open that dialog. I don't believe you can then hook into it and say populate it with values or select the Linear Referencing tab. To my knowledge those properties are not exposed.

Public Sub openFindDialog()

    Dim pUID As UID

    Set pUID = New UID

    pUID.Value = "{CE9BB1E9-B2D4-4442-8A81-42478C81B256}"

    Dim pApp As IApplication

    Set pApp = Application

    Dim pCommandItem As ICommandItem

    Set pCommandItem = pApp.Document.CommandBars.Find(pUID, True)

    pCommandItem.Execute

End Sub

0 Kudos