Zum Hauptinhalt gehen

How to Display Buffer Graphic and How to clear Selection

Kommentare

4 Kommentare

  • John Nerge

    I've done some small testing with these methods in the GVH, but not at 2.3.

    To clear a selection, use the RunExternalCommand activity and set the Command Name parameter to "ClearSelection".

    To draw a buffer markup, use the Parallel For Each <T> activity.

    /customer/servlet/servlet.FileDownload?file=00P6000000elzn9EAA

    In this example, resultBuffer is the result from your BufferTask activity. I use "AddTemporaryMarkupGeometry" because my workflow clears the buffer drawing when it completes, but you could all use the "AddMarkupGeometry" command if you want to add the markup to your map and be able to edit/remove it using the drawing tools.

    0
  • Permanently deleted user

    Hi Brian,

    Just to add to Johns post, to clear the results list between successive iterations of the workflow the 'Clear Collection First' argument of the SelectFeatures activity to 'True'. This will clear any selected features of the results list each time the workflow executes.

    Waren

    0
  • Permanently deleted user

    Thanks Warren and John!  Warren, that was exactly what I needed.  Cleared my list between running the workflow.  John when I try to use the ParallelForEach with the BuffTask result I get an error message seen below: 

    /customer/servlet/servlet.FileDownload?file=00P6000000e88aNEAQ

     

    Thanks!  And yes, I haven't changed the original variable names, so the buffer result is called 'graphic'.  

    Brian

    0
  • John Nerge

    It's having a conversion issue, but I'm not sure why. Our settings on our Buffer Task activity are a little different.

    /customer/servlet/servlet.FileDownload?file=00P6000000elu7KEAQ

    My Distance argument looks like that because the buffer distance is based on user input.

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.