<?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: Cannot add lasd to map using python script in 10.2.2 in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/cannot-add-lasd-to-map-using-python-script-in-10-2/m-p/125679#M9796</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;/P&gt;&lt;P&gt;Did you find a solution to add lasd-files to ArcMap? I have tried different approaches in 10.6 but haven't found a solution yet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Aug 2019 18:55:35 GMT</pubDate>
    <dc:creator>ErikNilsson</dc:creator>
    <dc:date>2019-08-20T18:55:35Z</dc:date>
    <item>
      <title>Cannot add lasd to map using python script in 10.2.2</title>
      <link>https://community.esri.com/t5/python-questions/cannot-add-lasd-to-map-using-python-script-in-10-2/m-p/125678#M9795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a python script which creates a las dataset and adds it to the map. It worked fine in 10.1. I just installed 10.2.2 and now it gives me an error when I run the script. Is there something wrong with my script or did something change between 10.1 and 10.2.2 in terms of programmatically adding a lasd layer to a map?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the offending subset of my script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.management.CreateLasDataset(InputLAS, OutputLASD, "NO_RECURSION", "", "", "", "RELATIVE_PATHS")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Output_LASD_Layer = arcpy.CreateUniqueName("OutputLASD.lasd")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.management.MakeLasDatasetLayer(OutputLASD, Output_LASD_Layer)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; addlayer = arcpy.mapping.Layer(Output_LASD_Layer)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; addlayer.name = Output_LASD_Layer_String&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.mapping.AddLayer(DataFrame, addlayer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get a value error:&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "Script.py", line 138, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; addlayer = arcpy.mapping.Layer(Output_LASD_Layer)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\arcobjects\mixins.py", line 389, in __init__&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; super(LayerMixin, self).__init__(lyrfile)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\arcobjects\_base.py", line 47, in __init__&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for arg in args))&lt;/P&gt;&lt;P&gt;ValueError: Object: CreateObject Layer invalid data source&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 22:03:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-add-lasd-to-map-using-python-script-in-10-2/m-p/125678#M9795</guid>
      <dc:creator>MarkNigrelli</dc:creator>
      <dc:date>2014-11-13T22:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot add lasd to map using python script in 10.2.2</title>
      <link>https://community.esri.com/t5/python-questions/cannot-add-lasd-to-map-using-python-script-in-10-2/m-p/125679#M9796</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;/P&gt;&lt;P&gt;Did you find a solution to add lasd-files to ArcMap? I have tried different approaches in 10.6 but haven't found a solution yet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2019 18:55:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-add-lasd-to-map-using-python-script-in-10-2/m-p/125679#M9796</guid>
      <dc:creator>ErikNilsson</dc:creator>
      <dc:date>2019-08-20T18:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot add lasd to map using python script in 10.2.2</title>
      <link>https://community.esri.com/t5/python-questions/cannot-add-lasd-to-map-using-python-script-in-10-2/m-p/125680#M9797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Eric-&amp;nbsp; given this original thread is 5 years old and refers to a version of software on which the sun has set, you may what to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start a new thread&lt;/P&gt;&lt;P&gt;and/or&lt;/P&gt;&lt;P&gt;Provide more details with respect to what you have tried, what are the desired results, and what are the actual results or error messages your are receiving.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2019 19:03:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-add-lasd-to-map-using-python-script-in-10-2/m-p/125680#M9797</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2019-08-20T19:03:42Z</dc:date>
    </item>
  </channel>
</rss>

