AddToCollection<Graphic>
Am using a ForEach<Graphic> loop to funnel the results to a lengths task.
The AddToCollection activity has a collection named "graphic"
How do I take this singular element and convert it to a featureset, so I can display this one element amongst the others in a different colour?
Or would there be a better solution for doing this?
Walter
-
Could you explain what is is you want to do exactly? The results of a Lengths task is a List(of Integer), I'm not quite sure why you'd want those converted to a featureset.
0 -
Berend,
When my workflow runs, my clients could indeed pick one or many, many sidewalks with the capture graphics activity. Although I do select on the sidewalks that were processed through the query activity, I wanted to be able to uniquely colour the exact sidewalk that is being processed by the lenghts task at that time.
So, inside my foreach feature loop, I recolour the sidewalk segment by creating a mini-featureset inside the loop.
That way, when the measurement is displayed, my client knows exactly which sidewalk segment is being processed.
How this was solved was that the "AddToCollection<Graphic> activity, the collection parameter I used this ....NewFeatureSet.features and thus uniquely identified that specific segment.
Walter
0 -
I see. In that case I think I would use a RunExternalCommand activity with AddTemporaryMarkupGeometry as Command Name and the graphic's Geometry as Command Parameter.
Use ClearTemporaryMarkup to clear the previous sidewalk.
0 -
Berend,
Yes, that would work too.
Thanks for your help....Walter
0
Please sign in to leave a comment.
Comments
4 comments