Skip to main content

AddToCollection<Graphic>

Comments

4 comments

  • Berend Veldkamp

    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
  • Permanently deleted user

    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
  • Berend Veldkamp

    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
  • Permanently deleted user

    Berend,

    Yes, that would work too.

    Thanks for your help....Walter

    0

Please sign in to leave a comment.