-1

I have found below UID for Trace task Dropdown List.

Trace Task Dropdown List : {DE03EE81-BE26-11D2-BABE-00C04FA33C20}

But nothing is executed when using this UID. I would need to know the exact UID for find connected,find disconnect, find path, Trace downstream and upstream tasks to invoke them from my application developing using arcobjects .net.

1

You can use the ITraceTasks interface to iterate through the names of available tasks. Use the name property of the task to find a match. When you find the task you can get its reference as an ITaskTrace object.

Here is a code example:

ITraceTasks traceTasks = (ITraceTasks) ArcMap.Application.FindExtensionByName("esriCore.UtilityNetworkAnalysisExt");
string taskName = "Find Common Ancestors";
ITraceTask task;
for (int i = 0; i < traceTasks.TaskCount; i++)
{
    if (traceTasks.Task[i].Name == taskName)
    {
        task = traceTasks.Task[i];
        break;
    }
}

Esri Documentation here: ITraceTasks Documentation

0

Are they not simply items of text in a list, there is no UID for them? The UID is for the control (Trace Task Dropdown List) which is displaying the list of values?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.