AnsweredAssumed Answered

Geoprocessing Locate Features Along Routes

Question asked by scott.kempin on Nov 5, 2019
Latest reply on Nov 5, 2019 by nahmed-esristaff

I have tried to match the python syntax for calling the Locate Features Along Routes tool. However, I am unable to get the tool to adhere to the properties I am trying to implement in the props string. I assume this is a syntax error but I seem to have tried everything. Any ideas?



//Locate structures along stream routes
string urlStreamRoutes = defaultGdbPath + "\\StreamRoutes";
string urlStructTable = defaultGdbPath + "\\StructureStationing";
var props = "rkey LINE fmp tmp";
var locateArgs = Geoprocessing.MakeValueArray(urlStructBuffer, urlStreamRoutes, streamRouteId, "1 feet", urlStructTable, props, "#", "#", "NO_ZERO", "FIELDS", "M_DIRECTION");
//var locateStructs = await QueuedTask.Run(() => { return Geoprocessing.ExecuteToolAsync("LocateFeaturesAlongRoutes_lr", locateArgs); });
Geoprocessing.OpenToolDialog("LocateFeaturesAlongRoutes_lr", locateArgs);