Select to view content in your preferred language

Copy / Paste special

416
1
12-19-2022 11:24 AM
by Anonymous User
Not applicable

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



0 Kudos
1 Reply
Wolf
by Esri Regular Contributor
Esri Regular Contributor

Please see my reply with attached sample code here:  Copy geometry to clipboard - Esri Community

0 Kudos