Draw line, get coordinates of vertices?
Hello. I'd like to deploy a workflow that prompts a user to draw a line using the drawing tools, then captures the coordinates of each of the vertices of the drawn line (assume it's a single segment with just two end vertices) and passes them to a SQL Server stored procedure. How can I use or extend the GetGraphicsLayerContent activity to expose the vertex coordinates? Thanks!
0
-
Hi Jamey,
It is possible to retrieve geometry from the drawing tools with the GetGraphicsLayerContent activity, however a lot can go wrong with this method if your user draws or has previously drawn different geometry than your workflow expects. If you're going this route, the default name of the drawing layer to use with that activity is "Drawings".
I would recommend instead using the Capture Geometry activity and prompt your user to draw a line. That way you can be sure that they will only provide the geometry that the workflow needs. Here's an example of a method to get coordinates this way:
Hope that helps!
Amanda0
Please sign in to leave a comment.
Comments
1 comment