<?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 Reference to active document in ArcMap Failed from PyScripter in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/reference-to-active-document-in-arcmap-failed-from/m-p/388452#M30722</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...If I try to set a reference to the currently open map in ArcMap, it will work in ArcMap's python console, but it will not work in PyScripter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="b.png" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/197981_b.png" style="width: 620px; height: 447px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="a.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/197971_a.png" style="width: 620px; height: 545px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really hope that I'm just doing something wrong, otherwise I lose the great benefits I get from writing and debugging code in PyScripter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 May 2016 02:14:32 GMT</pubDate>
    <dc:creator>JohnBonifas1</dc:creator>
    <dc:date>2016-05-03T02:14:32Z</dc:date>
    <item>
      <title>Reference to active document in ArcMap Failed from PyScripter</title>
      <link>https://community.esri.com/t5/python-questions/reference-to-active-document-in-arcmap-failed-from/m-p/388452#M30722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...If I try to set a reference to the currently open map in ArcMap, it will work in ArcMap's python console, but it will not work in PyScripter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="b.png" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/197981_b.png" style="width: 620px; height: 447px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="a.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/197971_a.png" style="width: 620px; height: 545px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really hope that I'm just doing something wrong, otherwise I lose the great benefits I get from writing and debugging code in PyScripter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 02:14:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/reference-to-active-document-in-arcmap-failed-from/m-p/388452#M30722</guid>
      <dc:creator>JohnBonifas1</dc:creator>
      <dc:date>2016-05-03T02:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Reference to active document in ArcMap Failed from PyScripter</title>
      <link>https://community.esri.com/t5/python-questions/reference-to-active-document-in-arcmap-failed-from/m-p/388453#M30723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry -- the PyScripter Python process is separate from the Python process under ArcMap - so it definitely can't access a "current" document. You could work with a saved .mxd document, but you can't interact with ArcMap from another Python session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way I test tricky things in arcpy.mapping is by trying them out using ArcMap's Python command window.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 02:21:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/reference-to-active-document-in-arcmap-failed-from/m-p/388453#M30723</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2016-05-03T02:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Reference to active document in ArcMap Failed from PyScripter</title>
      <link>https://community.esri.com/t5/python-questions/reference-to-active-document-in-arcmap-failed-from/m-p/388454#M30724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...Programmers who are reading this will instantly realize how crummy that is. I as a programmer can imagine how impossible it would be to try to develop scripts in Microsoft Office without the VBA Editor. It has 100% reliable access to *ALL* of the host applications' objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody have inside information (Mr. Patterson....?) as to when ArcGIS 10 will have *ROBUST* support for external python editors. This is ridiculous!!&amp;nbsp; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 23:46:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/reference-to-active-document-in-arcmap-failed-from/m-p/388454#M30724</guid>
      <dc:creator>JohnBonifas1</dc:creator>
      <dc:date>2016-05-04T23:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Reference to active document in ArcMap Failed from PyScripter</title>
      <link>https://community.esri.com/t5/python-questions/reference-to-active-document-in-arcmap-failed-from/m-p/388455#M30725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;John Bonifas wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...Programmers who are reading this will instantly realize how crummy that is. I as a programmer can imagine how impossible it would be to try to develop scripts in Microsoft Office without the VBA Editor. It has 100% reliable access to *ALL* of the host applications' objects.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P&gt;Does anybody have inside information (Mr. Patterson....?) as to when ArcGIS 10 will have *ROBUST* support for external python editors. This is ridiculous!! &lt;SPAN class="emoticon_sad emoticon-inline" style="height: 16px; width: 16px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Your analogy is poor. The VBA Editor is built in to the host Office application, it is not an external editor.&amp;nbsp; A better analogy would be to compare the built in ArcGIS python window. This does have access to the current map document.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2016 23:42:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/reference-to-active-document-in-arcmap-failed-from/m-p/388455#M30725</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2016-06-19T23:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Reference to active document in ArcMap Failed from PyScripter</title>
      <link>https://community.esri.com/t5/python-questions/reference-to-active-document-in-arcmap-failed-from/m-p/388456#M30726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and to add to Luke's comments, I use Pythonwin and Pyscripter with ArcMap 10.4.1 and ArcGIS Pro 1.2 all the time.&amp;nbsp; In fact, I have only used the builtin IDE once or twice.&amp;nbsp; Pycharm seems to have issues with some, but for the most part, setting up an external IDE to run with ArcWhatever doesn't seem to be an issue for most.&amp;nbsp; I am sure the esri developers aren't using the builtin IDE for development an testing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 00:36:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/reference-to-active-document-in-arcmap-failed-from/m-p/388456#M30726</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-06-20T00:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Reference to active document in ArcMap Failed from PyScripter</title>
      <link>https://community.esri.com/t5/python-questions/reference-to-active-document-in-arcmap-failed-from/m-p/388457#M30727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan, I agree with you re. ease of using external editors with arcpy. I think the OPs complaint was more about not being able to control a running application/map doc from python.&amp;nbsp; Which to my mind is more in the realm of arcobjects.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 01:43:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/reference-to-active-document-in-arcmap-failed-from/m-p/388457#M30727</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2016-06-20T01:43:02Z</dc:date>
    </item>
  </channel>
</rss>

