<?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 How to drag drop layers using  pythonaddins.OpenDialog() in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-drag-drop-layers-using-pythonaddins/m-p/747687#M57790</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a custom filtered&amp;nbsp; &amp;nbsp;pythonaddins.OpenDialog()&amp;nbsp; , Is it possible to drag drop layers into TOC ?&lt;/P&gt;&lt;P&gt;This is possible&amp;nbsp; from windows explorer and folder connection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jan 2018 22:00:30 GMT</pubDate>
    <dc:creator>SurendranNeelakantan</dc:creator>
    <dc:date>2018-01-24T22:00:30Z</dc:date>
    <item>
      <title>How to drag drop layers using  pythonaddins.OpenDialog()</title>
      <link>https://community.esri.com/t5/python-questions/how-to-drag-drop-layers-using-pythonaddins/m-p/747687#M57790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a custom filtered&amp;nbsp; &amp;nbsp;pythonaddins.OpenDialog()&amp;nbsp; , Is it possible to drag drop layers into TOC ?&lt;/P&gt;&lt;P&gt;This is possible&amp;nbsp; from windows explorer and folder connection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 22:00:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-drag-drop-layers-using-pythonaddins/m-p/747687#M57790</guid>
      <dc:creator>SurendranNeelakantan</dc:creator>
      <dc:date>2018-01-24T22:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to drag drop layers using  pythonaddins.OpenDialog()</title>
      <link>https://community.esri.com/t5/python-questions/how-to-drag-drop-layers-using-pythonaddins/m-p/747688#M57791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am quite certain what you ask is not possible.&amp;nbsp; The &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;OpenDialog()&lt;/SPAN&gt; method calls the same dialog used by the Add Data.... dialog and many more, and you cannot drag &amp;amp; drop from within that dialog/control to the TOC.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2018 13:56:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-drag-drop-layers-using-pythonaddins/m-p/747688#M57791</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-01-25T13:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to drag drop layers using  pythonaddins.OpenDialog()</title>
      <link>https://community.esri.com/t5/python-questions/how-to-drag-drop-layers-using-pythonaddins/m-p/747689#M57792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Thank you for the reply.&amp;nbsp; In that case what is the advantage of using&amp;nbsp;pythonaddins.OpenDialog()?&amp;nbsp; we can create a python adding&amp;nbsp; which calls the explorer window&amp;nbsp; as a sub process&amp;nbsp; and search and drag&amp;nbsp; layers from that to TOC.&amp;nbsp; which is&amp;nbsp; better&amp;nbsp; method ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2018 15:39:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-drag-drop-layers-using-pythonaddins/m-p/747689#M57792</guid>
      <dc:creator>SurendranNeelakantan</dc:creator>
      <dc:date>2018-01-25T15:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to drag drop layers using  pythonaddins.OpenDialog()</title>
      <link>https://community.esri.com/t5/python-questions/how-to-drag-drop-layers-using-pythonaddins/m-p/747690#M57793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which is better depends on your situation.&amp;nbsp; Calling OpenDialog() gets you a dialog that looks and functions like other dialogs users are used to in ArcGIS, and it is simple to code.&amp;nbsp; If dragging from the dialog to the TOC is important, and you are comfortable working with calling subprocesses, it seems that would be what is best in your situation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2018 16:11:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-drag-drop-layers-using-pythonaddins/m-p/747690#M57793</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-01-25T16:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to drag drop layers using  pythonaddins.OpenDialog()</title>
      <link>https://community.esri.com/t5/python-questions/how-to-drag-drop-layers-using-pythonaddins/m-p/747691#M57794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you again, Personally I like&amp;nbsp; the ESRI&amp;nbsp; Add data like dialog, but our requirement is to let users search for layers from 100s&amp;nbsp; of layers from&amp;nbsp; different sub folders and add to TOC. We&amp;nbsp; can call&amp;nbsp;&amp;nbsp;"explorer.exe"&amp;nbsp; using subprocess.popen&amp;nbsp; with&amp;nbsp; couple of lines of code. But I am not sure if there is any other issue with this, so far it works fine.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2018 16:33:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-drag-drop-layers-using-pythonaddins/m-p/747691#M57794</guid>
      <dc:creator>SurendranNeelakantan</dc:creator>
      <dc:date>2018-01-25T16:33:07Z</dc:date>
    </item>
  </channel>
</rss>

