<?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: Python in ArcScene? in 3D Questions</title>
    <link>https://community.esri.com/t5/3d-questions/python-in-arcscene/m-p/117055#M669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am not sure if your problem has the same cause but I was getting the same error in ArcMap trying to run a Python script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally I discovered the script tool needs to run 'in process' in order to be able to access the 'CURRENT' map document. (Right click on script in ArcToolbox, select Source tab and make sure 'Run Python script in process' is checked).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2011 22:09:47 GMT</pubDate>
    <dc:creator>MJChurchill</dc:creator>
    <dc:date>2011-07-28T22:09:47Z</dc:date>
    <item>
      <title>Python in ArcScene?</title>
      <link>https://community.esri.com/t5/3d-questions/python-in-arcscene/m-p/117054#M668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having a little trouble, thought I would use Python to repair a number of broken data sources but hit the following issue:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;gt;&amp;gt;&amp;gt; import arcpy
&amp;gt;&amp;gt;&amp;gt; md = arcpy.mapping.MapDocument("CURRENT")
Runtime error &amp;lt;type 'exceptions.RuntimeError'&amp;gt;: Object: CreateObject cannot open map document
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this something super simple (I am new to arcpy and Python) or is there another way to get the MapDocument in ArcScene (and ArcGlobe?).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:52:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/python-in-arcscene/m-p/117054#M668</guid>
      <dc:creator>GrantHerbert</dc:creator>
      <dc:date>2021-12-11T06:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Python in ArcScene?</title>
      <link>https://community.esri.com/t5/3d-questions/python-in-arcscene/m-p/117055#M669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am not sure if your problem has the same cause but I was getting the same error in ArcMap trying to run a Python script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally I discovered the script tool needs to run 'in process' in order to be able to access the 'CURRENT' map document. (Right click on script in ArcToolbox, select Source tab and make sure 'Run Python script in process' is checked).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 22:09:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/python-in-arcscene/m-p/117055#M669</guid>
      <dc:creator>MJChurchill</dc:creator>
      <dc:date>2011-07-28T22:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Python in ArcScene?</title>
      <link>https://community.esri.com/t5/3d-questions/python-in-arcscene/m-p/117056#M670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Grant,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately the Arcpy.mapping module will not work in ArcScene because the arcpy.mapping.MapDocument() module is looking for a map document and not a scene document.&amp;nbsp; This is probably something that we should take into consideration though.&amp;nbsp; You might want to add this to our ideas site:&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://ideas.arcgis.com/ideaHome?c=09a300000004xET"&gt;http://ideas.arcgis.com/ideaHome?c=09a300000004xET&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 21:35:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/python-in-arcscene/m-p/117056#M670</guid>
      <dc:creator>JamieDrisdelle</dc:creator>
      <dc:date>2011-08-05T21:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Python in ArcScene?</title>
      <link>https://community.esri.com/t5/3d-questions/python-in-arcscene/m-p/117057#M671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Grant,&lt;BR /&gt;&lt;BR /&gt;Unfortunately the Arcpy.mapping module will not work in ArcScene because the arcpy.mapping.MapDocument() module is looking for a map document and not a scene document.&amp;nbsp; This is probably something that we should take into consideration though.&amp;nbsp; You might want to add this to our ideas site:&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://ideas.arcgis.com/ideaHome?c=09a300000004xET"&gt;http://ideas.arcgis.com/ideaHome?c=09a300000004xET&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the status of this?&amp;nbsp; We have some VBA that processes ArcScene (9.3.1) document contents and will need to come up with solution for the ArcGIS 10.1 environment.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 14:07:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/python-in-arcscene/m-p/117057#M671</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2013-03-15T14:07:23Z</dc:date>
    </item>
  </channel>
</rss>

