<?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: Create LasDataset Geoprocessing tool using the Arcpro sdk for C# in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-lasdataset-geoprocessing-tool-using-the/m-p/1476452#M11560</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would suggest you invest a little bit in geoprocessing events handling. More info you can find &lt;A href="https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Geoprocessing#executing-a-tool-with-event-handling" target="_self"&gt;here&lt;/A&gt; (section&amp;nbsp;Executing a tool with event handling). Be careful with&amp;nbsp;_cts.Cancel();. It could close your tool and with right workflow. It will let you to find invalid parameters and get more information about process workflow.&lt;/P&gt;</description>
    <pubDate>Tue, 21 May 2024 18:14:15 GMT</pubDate>
    <dc:creator>GKmieliauskas</dc:creator>
    <dc:date>2024-05-21T18:14:15Z</dc:date>
    <item>
      <title>Create LasDataset Geoprocessing tool using the Arcpro sdk for C#</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-lasdataset-geoprocessing-tool-using-the/m-p/1475933#M11558</link>
      <description>&lt;P&gt;Can someone help me understand what I'm doing wrong when trying to call the CreateLasDataset geoprocessing tool? I have trouble with calling the geoprocessing tools in general, this is for C#.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my current helper method to call the create lasdataset geoprocessing tool.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="createlasmethod.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104698i9E0FDFD4A88FE6D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="createlasmethod.PNG" alt="createlasmethod.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I set up the tool and extract the spatial reference from an existing layer within the map then call the helper method here in this code snippet below. Note, I also extract the wkid, maybe I should use this instead and get the spatial reference within the createlasdataset helper method?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="setup.PNG" style="width: 624px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104699iD2A10F60F5987E38/image-dimensions/624x234?v=v2" width="624" height="234" role="button" title="setup.PNG" alt="setup.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I run the tool manually, then copy and past the arcpy command I get this result, my thinking was to recreate this order of parameters but I'm not having much luck.&amp;nbsp; I highlighted the spatial reference to try and make this easier to read.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;arcpy.management.CreateLasDataset(r"G:\GS\Projects\Reil_Delivery\ArcProAddins\SchulerSwathTool\lasfilelocation", r"G:\GS\Projects\Reil_Delivery\ArcProAddins\SchulerSwathTool\lasfilelocation.lasd", "NO_RECURSION", None, &lt;STRONG&gt;'PROJCS["NAD_1983_UTM_Zone_12N",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-111.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]'&lt;/STRONG&gt;, "COMPUTE_STATS", "ABSOLUTE_PATHS", "NO_FILES", "DEFAULT", None, "INTERSECTED_FILES")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone help me understand how to do this correctly? This is my first time asking a question like this, I'm unfamiliar with how to format properly.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 00:53:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-lasdataset-geoprocessing-tool-using-the/m-p/1475933#M11558</guid>
      <dc:creator>ReilDeal92</dc:creator>
      <dc:date>2024-05-21T00:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create LasDataset Geoprocessing tool using the Arcpro sdk for C#</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-lasdataset-geoprocessing-tool-using-the/m-p/1476452#M11560</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would suggest you invest a little bit in geoprocessing events handling. More info you can find &lt;A href="https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Geoprocessing#executing-a-tool-with-event-handling" target="_self"&gt;here&lt;/A&gt; (section&amp;nbsp;Executing a tool with event handling). Be careful with&amp;nbsp;_cts.Cancel();. It could close your tool and with right workflow. It will let you to find invalid parameters and get more information about process workflow.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 18:14:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-lasdataset-geoprocessing-tool-using-the/m-p/1476452#M11560</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2024-05-21T18:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create LasDataset Geoprocessing tool using the Arcpro sdk for C#</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-lasdataset-geoprocessing-tool-using-the/m-p/1477117#M11572</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/740796"&gt;@ReilDeal92&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another alternative to create a LasDatasetLayer is to use the .NET API. At 3.2, we added support for working with 3D Layers such as LASDataset layers.&amp;nbsp;&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-3D-Analyst-Layers" target="_self"&gt;ProConcepts: 3D Analyst Layers&lt;/A&gt;&amp;nbsp; &amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-3D-Analyst-Data" target="_self"&gt;ProConcepts: 3D Analyst Data&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a code snippet to use create a LASDataset layer from an existing LAS Dataset.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;QueuedTask.Run(() =&amp;gt;
{
//Use the various constructors available to create a LasDatasetLayerCreationParams object from an Item, LasDataset, etc. Refer to https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic20557.html  
var lasDatasetCreationParams = new LasDatasetLayerCreationParams(new Uri(@"C:\Data\lasDataset.lasd"))
  {
    Name = "LasLayerUsingAPI",
  };
  var lasLayer = LayerFactory.Instance.CreateLayer&amp;lt;LasDatasetLayer&amp;gt;(lasDatasetCreationParams, MapView.Active.Map);
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 17:15:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-lasdataset-geoprocessing-tool-using-the/m-p/1477117#M11572</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2024-05-22T17:15:00Z</dc:date>
    </item>
  </channel>
</rss>

