Skip to content

Commit 70f8c0c

Browse files
committed
ArcGIS Pro 3.2 SDK for .NET
1 parent 5ee6213 commit 70f8c0c

File tree

1,507 files changed

+42015
-18901
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,507 files changed

+42015
-18901
lines changed

3DAnalyst/GetLineOfSight/Config.daml

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<!--
3+
4+
Copyright 2023 Esri
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
https://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
16+
See the License for the specific language governing permissions and
17+
limitations under the License.
18+
19+
-->
20+
<ArcGIS defaultAssembly="GetLineOfSight.dll" defaultNamespace="GetLineOfSight" xmlns="http://schemas.esri.com/DADF/Registry" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.esri.com/DADF/Registry file:///C:/Program%20Files/ArcGIS/Pro/bin/ArcGIS.Desktop.Framework.xsd">
21+
<AddInInfo id="{d818e029-5152-42d2-afc8-3ad78f5c6c2d}" version="1.0" desktopVersion="3.2.48335">
22+
<Name>GetLineOfSight</Name>
23+
<Description>GetLineOfSight description</Description>
24+
<Image>Images\AddinDesktop32.png</Image>
25+
<Author>uma2526</Author>
26+
<Company>Acme</Company>
27+
<Date>5/16/2023 12:36:14 PM</Date>
28+
<Subject>Framework</Subject>
29+
<!-- Note subject can be one or more of these topics:
30+
Content, Framework, Editing, Geodatabase, Geometry, Geoprocessing, Layouts, Map Authoring, Map Exploration -->
31+
</AddInInfo>
32+
<modules>
33+
<insertModule id="GetLineOfSight_Module" className="Module1" autoLoad="false" caption="Module1">
34+
<!-- uncomment to have the control hosted on a separate tab-->
35+
<tabs>
36+
<!--<tab id="GetLineOfSight_Tab1" caption="New Tab">
37+
<group refID="GetLineOfSight_Group1"/>
38+
</tab>-->
39+
</tabs>
40+
<groups>
41+
<!-- comment this out if you have no controls on the Addin tab to avoid
42+
an empty group-->
43+
<group id="GetLineOfSight_Group1" caption="Group 1" appearsOnAddInTab="true">
44+
<!-- host controls within groups -->
45+
</group>
46+
</groups>
47+
<controls>
48+
<tool id="GetLineOfSight_LoSTool" categoryRefID="esri_editing_construction_polyline" caption="Line of Sight" className="LoSTool" loadOnClick="true" smallImage="LOSLinear16" largeImage="LOSLinear32">
49+
<!--note: use esri_editing_construction_polyline, esri_editing_construction_polygon for categoryRefID as needed-->
50+
<tooltip heading="Line of sight">Gets the line of sight components.<disabledText /></tooltip>
51+
<content guid="468c3f18-3e38-4ae6-b1ba-6c643c38caaf" toolOptionsID="GetLineOfSight_LoSToolOptionsView" />
52+
</tool>
53+
</controls>
54+
</insertModule>
55+
</modules>
56+
<categories>
57+
<updateCategory refID="esri_editing_tool_options">
58+
<insertComponent id="GetLineOfSight_LoSToolOptionsView" className="LoSToolOptionsViewViewModel">
59+
<content className="LoSToolOptionsViewView" />
60+
</insertComponent>
61+
</updateCategory>
62+
</categories>
63+
</ArcGIS>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
## GetLineOfSight
2+
3+
<!-- TODO: Write a brief abstract explaining this sample -->
4+
This sample illustrates how to calculate the line of sight between an observer point and a target point. The line of sight is calculated based on a TIN dataset.
5+
6+
7+
8+
<a href="https://pro.arcgis.com/en/pro-app/sdk/" target="_blank">View it live</a>
9+
10+
<!-- TODO: Fill this section below with metadata about this sample-->
11+
```
12+
Language: C#
13+
Subject: Framework
14+
Contributor: ArcGIS Pro SDK Team <arcgisprosdk@esri.com>
15+
Organization: Esri, https://www.esri.com
16+
Date: 10/01/2023
17+
ArcGIS Pro: 3.2
18+
Visual Studio: 2022
19+
.NET Target Framework: net6.0-windows
20+
```
21+
22+
## Resources
23+
24+
[Community Sample Resources](https://github.com/Esri/arcgis-pro-sdk-community-samples#resources)
25+
26+
### Samples Data
27+
28+
* Sample data for ArcGIS Pro SDK Community Samples can be downloaded from the [Releases](https://github.com/Esri/arcgis-pro-sdk-community-samples/releases) page.
29+
30+
## How to use the sample
31+
<!-- TODO: Explain how this sample can be used. To use images in this section, create the image file in your sample project's screenshots folder. Use relative url to link to this image using this syntax: ![My sample Image](FacePage/SampleImage.png) -->
32+
1. Download the Community Sample data (see under the 'Resources' section for downloading sample data)
33+
2. Make sure that the Sample data is unzipped in c:\data
34+
3. The project used for this sample is 'C:\Data\3DAnalyst\_3DLayersMap.ppkx'
35+
4. In Visual Studio click the Build menu.Then select Build Solution.
36+
5. Launch the debugger to open ArcGIS Pro.
37+
6. ArcGIS Pro will open, select the 3DLayersMap.ppkx project package.
38+
7. Activate the LineOfSight scene.
39+
8. This scene has the following layers in the TOC:
40+
* squaw_tin: TIN Dataset
41+
* LosResults_Input: Line feature layer input for the Line of Sight calculation.
42+
* LosResults: Line Feature Layer that will store the Line of sight result in two components - Visible and Invisible(if there is an obstruction point) sections. Visible section is symbolized in red and Invisible section is symbolized in green.
43+
* LosObstructionPoints: Point feature layer that represents the obstruction points detected in the line of sight.
44+
9. Select the 'Edit' tab on the ArcGIS Pro ribbon and 'Create' new features
45+
10. On the 'Create Features' pane select the LosResults_Input feature layer to see the 'Line of Sight' tool
46+
![UI](Screenshots/LineOfSightTool.png)
47+
11. Select and activate the tool and see the Options page displaying the various parameters for the Line of Sight Tool.
48+
![UI](Screenshots/LineOfSightOptions.png)
49+
12. Enter the parameters you require.
50+
13. Sketch a line on the TIN in the Scene.
51+
14. See a "Line of Sight" profile created for the sketched line. If there is an obstruction, you will also see this point symbolized in red. In this case, the line of sight will have two components - Visible section is symbolized in red and Invisible section is symbolized in green.
52+
![UI](Screenshots/LineOfSightAndObstructionPoint.png)
53+
54+
55+
<!-- End -->
56+
57+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="https://esri.github.io/arcgis-pro-sdk/images/ArcGISPro.png" alt="ArcGIS Pro SDK for Microsoft .NET Framework" height = "20" width = "20" align="top" >
58+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
59+
[Home](https://github.com/Esri/arcgis-pro-sdk/wiki) | <a href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference" target="_blank">API Reference</a> | [Requirements](https://github.com/Esri/arcgis-pro-sdk/wiki#requirements) | [Download](https://github.com/Esri/arcgis-pro-sdk/wiki#installing-arcgis-pro-sdk-for-net) | <a href="https://github.com/esri/arcgis-pro-sdk-community-samples" target="_blank">Samples</a>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project Sdk="Microsoft.NET.Sdk">
3+
<PropertyGroup>
4+
<TargetFramework>net6.0-windows</TargetFramework>
5+
<UseWPF>true</UseWPF>
6+
<RuntimeIdentifier>win10-x64</RuntimeIdentifier>
7+
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
8+
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
9+
<NoWarn>CA1416</NoWarn>
10+
<GenerateDocumentationFile>True</GenerateDocumentationFile>
11+
</PropertyGroup>
12+
<ItemGroup>
13+
<Content Include="Config.daml" />
14+
<Content Include="Images\AddInDesktop16.png" />
15+
<Content Include="Images\AddInDesktop32.png" />
16+
<Content Include="DarkImages\AddInDesktop16.png" />
17+
<Content Include="DarkImages\AddInDesktop32.png" />
18+
</ItemGroup>
19+
<ItemGroup>
20+
<PackageReference Include="Extended.Wpf.Toolkit" Version="4.5.1" />
21+
</ItemGroup>
22+
<ItemGroup>
23+
<Reference Include="ArcGIS.Desktop.Framework">
24+
<HintPath>C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Framework.dll</HintPath>
25+
<CopyLocal>False</CopyLocal>
26+
<Private>False</Private>
27+
</Reference>
28+
<Reference Include="ArcGIS.Core">
29+
<HintPath>C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Core.dll</HintPath>
30+
<CopyLocal>False</CopyLocal>
31+
<Private>False</Private>
32+
</Reference>
33+
<Reference Include="ArcGIS.Desktop.Core">
34+
<HintPath>C:\Program Files\ArcGIS\Pro\bin\Extensions\Core\ArcGIS.Desktop.Core.dll</HintPath>
35+
<CopyLocal>False</CopyLocal>
36+
<Private>False</Private>
37+
</Reference>
38+
<Reference Include="ArcGIS.Desktop.Mapping">
39+
<HintPath>C:\Program Files\ArcGIS\Pro\bin\Extensions\Mapping\ArcGIS.Desktop.Mapping.dll</HintPath>
40+
<CopyLocal>False</CopyLocal>
41+
<Private>False</Private>
42+
</Reference>
43+
<Reference Include="ArcGIS.Desktop.Catalog">
44+
<HintPath>C:\Program Files\ArcGIS\Pro\bin\Extensions\Catalog\ArcGIS.Desktop.Catalog.dll</HintPath>
45+
<CopyLocal>False</CopyLocal>
46+
<Private>False</Private>
47+
</Reference>
48+
<Reference Include="ArcGIS.Desktop.Editing">
49+
<HintPath>C:\Program Files\ArcGIS\Pro\bin\Extensions\Editing\ArcGIS.Desktop.Editing.dll</HintPath>
50+
<CopyLocal>False</CopyLocal>
51+
<Private>False</Private>
52+
</Reference>
53+
<Reference Include="ArcGIS.Desktop.Extensions">
54+
<HintPath>C:\Program Files\ArcGIS\Pro\bin\Extensions\DesktopExtensions\ArcGIS.Desktop.Extensions.dll</HintPath>
55+
<CopyLocal>False</CopyLocal>
56+
<Private>False</Private>
57+
</Reference>
58+
<Reference Include="ArcGIS.Desktop.GeoProcessing">
59+
<HintPath>C:\Program Files\ArcGIS\Pro\bin\Extensions\GeoProcessing\ArcGIS.Desktop.GeoProcessing.dll</HintPath>
60+
<CopyLocal>False</CopyLocal>
61+
<Private>False</Private>
62+
</Reference>
63+
<Reference Include="ArcGIS.Desktop.Layouts">
64+
<HintPath>C:\Program Files\ArcGIS\Pro\bin\Extensions\Layout\ArcGIS.Desktop.Layouts.dll</HintPath>
65+
<CopyLocal>False</CopyLocal>
66+
<Private>False</Private>
67+
</Reference>
68+
<Reference Include="ArcGIS.Desktop.Shared.Wpf">
69+
<HintPath>C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Shared.Wpf.dll</HintPath>
70+
<CopyLocal>False</CopyLocal>
71+
<Private>False</Private>
72+
</Reference>
73+
<Reference Include="ArcGIS.Desktop.Ribbon.Wpf">
74+
<HintPath>C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Ribbon.Wpf.dll</HintPath>
75+
<CopyLocal>False</CopyLocal>
76+
<Private>False</Private>
77+
</Reference>
78+
<Reference Include="ArcGIS.Desktop.DataGrid.Contrib.Wpf">
79+
<HintPath>C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.DataGrid.Contrib.Wpf.dll</HintPath>
80+
<CopyLocal>False</CopyLocal>
81+
<Private>False</Private>
82+
</Reference>
83+
<Reference Include="ArcGIS.Desktop.Resources">
84+
<HintPath>C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Resources.dll</HintPath>
85+
<CopyLocal>False</CopyLocal>
86+
<Private>False</Private>
87+
</Reference>
88+
<Reference Include="ESRI.ArcGIS.ItemIndex">
89+
<HintPath>C:\Program Files\ArcGIS\Pro\bin\ESRI.ArcGIS.ItemIndex.dll</HintPath>
90+
<CopyLocal>False</CopyLocal>
91+
<Private>False</Private>
92+
</Reference>
93+
</ItemGroup>
94+
<ItemGroup>
95+
<Folder Include="Screenshots\" />
96+
</ItemGroup>
97+
<Import Project="C:\Program Files\ArcGIS\Pro\bin\Esri.ProApp.SDK.Desktop.targets" Condition="Exists('C:\Program Files\ArcGIS\Pro\bin\Esri.ProApp.SDK.Desktop.targets') AND !Exists('Esri.ArcGISPro.Extensions.targets')" />
98+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.4.33213.308
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GetLineOfSight", "GetLineOfSight.csproj", "{6C0505A7-88DB-40E7-A911-EE72649063C8}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{6C0505A7-88DB-40E7-A911-EE72649063C8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{6C0505A7-88DB-40E7-A911-EE72649063C8}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{6C0505A7-88DB-40E7-A911-EE72649063C8}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{6C0505A7-88DB-40E7-A911-EE72649063C8}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {D189D1C2-C0B4-4994-8230-5E87854DC8F6}
24+
EndGlobalSection
25+
EndGlobal

0 commit comments

Comments
 (0)