<?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: ArcPY CreateSceneLayerPackage Crashes (ArcGIS Pro 2.0) in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-createscenelayerpackage-crashes-arcgis-pro-2/m-p/556393#M43479</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not get any error message. A Try: Except: does not catch anything. I directly have the ArcGIS Pro crash report window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The exact same script works in ArcGIS Pro Python console and crashes when run from Windows cmd or Jupyter Notebook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/379816_2017-10-12 17_04_57-Command Prompt.png" style="width: 620px; height: 143px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="/legacyfs/online/379838_2017-10-12 17_05_03-ArcGIS Pro.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code works from the ArcGIS Pro console.&lt;/P&gt;&lt;P&gt;I have tried using different multipatch feature classes so it should not be the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script is: (copied from ArcGIS Pro Geoprocessing History)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #008000;"&gt;&lt;EM&gt;import arcpy&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;&lt;EM&gt;&lt;STRONG&gt;arcpy.management.MakeFeatureLayer&lt;/STRONG&gt;(r"D:\workspaces\sandbox\Sandbox_00\Sandbox_00.gdb\MultipatchFC", "MultipatchFC_Layer", None, None, "OBJECTID OBJECTID VISIBLE NONE;Shape Shape VISIBLE NONE")&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;&lt;EM&gt;&lt;STRONG&gt;arcpy.management.CreateSceneLayerPackage&lt;/STRONG&gt;("MultipatchFC_Layer", r"D:\workspaces\sandbox\Sandbox_00\SLPK\MultipatchFC.slpk", None, "PROJCS['WGS_1984_Web_Mercator_Auxiliary_Sphere',GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Mercator_Auxiliary_Sphere'],PARAMETER['False_Easting',0.0],PARAMETER['False_Northing',0.0],PARAMETER['Central_Meridian',0.0],PARAMETER['Standard_Parallel_1',0.0],PARAMETER['Auxiliary_Sphere_Type',0.0],UNIT['Meter',1.0]];-20037700 -30241100 10000;-100000 10000;-100000 10000;0.001;0.001;0.001;IsHighPrecision", 0, 0.01, 0.01, None)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Oct 2017 09:17:46 GMT</pubDate>
    <dc:creator>TheodoreDean</dc:creator>
    <dc:date>2017-10-12T09:17:46Z</dc:date>
    <item>
      <title>ArcPY CreateSceneLayerPackage Crashes (ArcGIS Pro 2.0)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-createscenelayerpackage-crashes-arcgis-pro-2/m-p/556391#M43477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When running a CreateSceneLayerPackage as a standalone script, ArcGIS Pro crashes.&lt;/P&gt;&lt;P&gt;When running the same script in ArcGIS Pro python console, it works fine.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;import arcpy&lt;/P&gt;&lt;P&gt;arcpy.management.MakeFeatureLayer(...)&lt;/P&gt;&lt;P&gt;arcpy.management.CreateSceneLayerPackage(...)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;To verify that the problem was not the syntax, I ran the 2 GP tools MakeFeatureLayer and CreateSceneLayerPackage from&amp;nbsp; ArcGIS Pro (not using python, from the toolboxes), I went to the Geoprocessing History &amp;gt; Copy Python Command and copy the lines in my script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same thing, when running it from the Pro python console it works, but it crashes from a standalone script.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Has anyone experienced something similar ? Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Theo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2017 04:26:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-createscenelayerpackage-crashes-arcgis-pro-2/m-p/556391#M43477</guid>
      <dc:creator>TheodoreDean</dc:creator>
      <dc:date>2017-10-12T04:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPY CreateSceneLayerPackage Crashes (ArcGIS Pro 2.0)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-createscenelayerpackage-crashes-arcgis-pro-2/m-p/556392#M43478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you not get an error message from the script?&amp;nbsp; Is the script editor used by pro to run/edit scripts?&lt;/P&gt;&lt;P&gt;perhaps a fuller example of the script to see what parameters and/or environments need to be looked at&lt;/P&gt;&lt;P&gt;&lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/create-scene-layer-package.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Create Scene Layer package &lt;/A&gt;&lt;/P&gt;&lt;P&gt;from there, the sample script specifies a workspace and a variety of other options, not the least of which is specifying a workspace in order to use the abbreviated paths to *.lyrx and the *.slpk output.&amp;nbsp; If your environment workspace isn't specified are you using full paths to files on disk? And what the other parameters? and how do they compare to the inputs&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy 
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workspace &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; 'c&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;gis_data
'arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;management&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CreateSceneLayerPackage&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Denver.lyrx"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Denver.slpk"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"INTENSITY"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"RGB"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"CLASS_CODE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"FLAGS"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"RETURNS"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SpatialReference&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;4326&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0.1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0.1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'ITRF_2000_To_WGS_1984 + WGS_1984_To_WGS_1984_EGM2008_2.5x2.5_Height'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:02:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-createscenelayerpackage-crashes-arcgis-pro-2/m-p/556392#M43478</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T00:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPY CreateSceneLayerPackage Crashes (ArcGIS Pro 2.0)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-createscenelayerpackage-crashes-arcgis-pro-2/m-p/556393#M43479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not get any error message. A Try: Except: does not catch anything. I directly have the ArcGIS Pro crash report window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The exact same script works in ArcGIS Pro Python console and crashes when run from Windows cmd or Jupyter Notebook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/379816_2017-10-12 17_04_57-Command Prompt.png" style="width: 620px; height: 143px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="/legacyfs/online/379838_2017-10-12 17_05_03-ArcGIS Pro.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code works from the ArcGIS Pro console.&lt;/P&gt;&lt;P&gt;I have tried using different multipatch feature classes so it should not be the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script is: (copied from ArcGIS Pro Geoprocessing History)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #008000;"&gt;&lt;EM&gt;import arcpy&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;&lt;EM&gt;&lt;STRONG&gt;arcpy.management.MakeFeatureLayer&lt;/STRONG&gt;(r"D:\workspaces\sandbox\Sandbox_00\Sandbox_00.gdb\MultipatchFC", "MultipatchFC_Layer", None, None, "OBJECTID OBJECTID VISIBLE NONE;Shape Shape VISIBLE NONE")&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;&lt;EM&gt;&lt;STRONG&gt;arcpy.management.CreateSceneLayerPackage&lt;/STRONG&gt;("MultipatchFC_Layer", r"D:\workspaces\sandbox\Sandbox_00\SLPK\MultipatchFC.slpk", None, "PROJCS['WGS_1984_Web_Mercator_Auxiliary_Sphere',GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Mercator_Auxiliary_Sphere'],PARAMETER['False_Easting',0.0],PARAMETER['False_Northing',0.0],PARAMETER['Central_Meridian',0.0],PARAMETER['Standard_Parallel_1',0.0],PARAMETER['Auxiliary_Sphere_Type',0.0],UNIT['Meter',1.0]];-20037700 -30241100 10000;-100000 10000;-100000 10000;0.001;0.001;0.001;IsHighPrecision", 0, 0.01, 0.01, None)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2017 09:17:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-createscenelayerpackage-crashes-arcgis-pro-2/m-p/556393#M43479</guid>
      <dc:creator>TheodoreDean</dc:creator>
      <dc:date>2017-10-12T09:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPY CreateSceneLayerPackage Crashes (ArcGIS Pro 2.0)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-createscenelayerpackage-crashes-arcgis-pro-2/m-p/556394#M43480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try making and saving a *.lyrx file on disk as in the help topic example... that may be what is crashing Pro, the mix of a layer in Pro versus a layer on disk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2017 09:49:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-createscenelayerpackage-crashes-arcgis-pro-2/m-p/556394#M43480</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-10-12T09:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPY CreateSceneLayerPackage Crashes (ArcGIS Pro 2.0)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-createscenelayerpackage-crashes-arcgis-pro-2/m-p/556395#M43481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very good intuition Dan, thanks a lot! Saving the layer on disk is the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;arcpy.management.MakeFeatureLayer&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;arcpy.management.SaveToLayerFile&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;arcpy.management.CreateSceneLayerPackage&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wish I had a little more python trace to debug this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again Dan!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2017 10:08:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-createscenelayerpackage-crashes-arcgis-pro-2/m-p/556395#M43481</guid>
      <dc:creator>TheodoreDean</dc:creator>
      <dc:date>2017-10-12T10:08:50Z</dc:date>
    </item>
  </channel>
</rss>

