Hello there,
I am trying to achieve a bit of functionality in my addin that I am struggling a bit to find a solution to.
The short intro:
Step1: Addin includes a tool that registers point-locations. These locations are then used to query a route service that returns polyline-geometry. The line geometry is then displayed in the map.
Step 2: The user can then choose to either do a new query, or store the geometry into som form of storage.
Step 1 is done and done, however I am struggling a bit to figure out how to implement step 2.
Is there an straight forward way for the user to copy/store the geometry into a featurelayer? Either by storing it into an in_memory workspace or using copy / pastespecial commands into and existing polyline-featurelayer. Has anyone done this or have a good suggestion on how to do it?
Happy for any help or point in the right direction.
Kind regards
Tor
Please see my reply with attached sample code here: Copy geometry to clipboard - Esri Community