<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Capture paste command when copying from the plugin feature layer .net sdk in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/capture-paste-command-when-copying-from-the-plugin/m-p/1254370#M9385</link>
    <description>&lt;P&gt;You could try to implement a 'custom' paste handler in your module class by overriding both CanPasteAsync and PasteAsync&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic10508.html" target="_blank"&gt;CanPasteAsync Method (Module)—ArcGIS Pro&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I think you would have to look at the content of the clipboard to find out if the clipboard data applies to your use case.&amp;nbsp; You would need to return true on CanPasteAsync and then popup you own error message in PasteAsync.&amp;nbsp; I attached a sample (released with 3.1) of a custom paste implementation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To make sure that your custom clipboard handler gets called regardless of any user interaction you need to set the Module's autoLoad setting to true in the config.daml file:&lt;/P&gt;&lt;P&gt;&amp;lt;insertModule .... autoLoad="true" ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Feb 2023 16:19:04 GMT</pubDate>
    <dc:creator>Wolf</dc:creator>
    <dc:date>2023-02-02T16:19:04Z</dc:date>
    <item>
      <title>Capture paste command when copying from the plugin feature layer .net sdk</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/capture-paste-command-when-copying-from-the-plugin/m-p/1254233#M9383</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on the plugin data sources to add the feature layers. These feature layers are not editable by default. So when I am trying to copy and paste it to the same layer I am getting an error that&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;No editable layers&lt;/STRONG&gt;". I have attached the error in the attachment as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I want to capture the paste event and modify the above error message with my own and rest of the copy paste functionality should work as it is.&lt;/P&gt;&lt;P&gt;Any help for this or is this possible??&lt;/P&gt;&lt;P&gt;One more question in the copy paste functionality it will only paste to the same layer by default or it will find any editable feature and paste there?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/42133"&gt;@GKmieliauskas&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/12882"&gt;@Wolf&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/9021"&gt;@UmaHarano&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 08:21:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/capture-paste-command-when-copying-from-the-plugin/m-p/1254233#M9383</guid>
      <dc:creator>GISNewbieDev</dc:creator>
      <dc:date>2023-02-02T08:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Capture paste command when copying from the plugin feature layer .net sdk</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/capture-paste-command-when-copying-from-the-plugin/m-p/1254370#M9385</link>
      <description>&lt;P&gt;You could try to implement a 'custom' paste handler in your module class by overriding both CanPasteAsync and PasteAsync&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic10508.html" target="_blank"&gt;CanPasteAsync Method (Module)—ArcGIS Pro&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I think you would have to look at the content of the clipboard to find out if the clipboard data applies to your use case.&amp;nbsp; You would need to return true on CanPasteAsync and then popup you own error message in PasteAsync.&amp;nbsp; I attached a sample (released with 3.1) of a custom paste implementation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To make sure that your custom clipboard handler gets called regardless of any user interaction you need to set the Module's autoLoad setting to true in the config.daml file:&lt;/P&gt;&lt;P&gt;&amp;lt;insertModule .... autoLoad="true" ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 16:19:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/capture-paste-command-when-copying-from-the-plugin/m-p/1254370#M9385</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2023-02-02T16:19:04Z</dc:date>
    </item>
  </channel>
</rss>

