├── .gitignore ├── APIRefImages └── Images │ ├── ArcGIS.Core.Geometry │ ├── AddVector.png │ ├── BackFaceCulling.png │ ├── BezierCurves.png │ ├── CircularArcs.png │ ├── Clothoid1.png │ ├── Clothoid2.png │ ├── Clothoid3.png │ ├── ConstructPolygonsFromPolylines.png │ ├── CubeWithNormals.png │ ├── Envelope_Intersects.png │ ├── Envelope_Union.png │ ├── Envelopes.png │ ├── FilletRadius.png │ ├── GeometryEngine_3DAxis.png │ ├── GeometryEngine_Boundary.png │ ├── GeometryEngine_Buffer.png │ ├── GeometryEngine_Clip.png │ ├── GeometryEngine_Contains.png │ ├── GeometryEngine_ConvexHull.png │ ├── GeometryEngine_Crosses.png │ ├── GeometryEngine_Cut.png │ ├── GeometryEngine_DensifyByLength.png │ ├── GeometryEngine_Difference.png │ ├── GeometryEngine_Disjoint.png │ ├── GeometryEngine_Distance.png │ ├── GeometryEngine_Equals.png │ ├── GeometryEngine_Generalize3D.png │ ├── GeometryEngine_GeodesicDensify.png │ ├── GeometryEngine_Intersects.png │ ├── GeometryEngine_Move2D.png │ ├── GeometryEngine_Move3D.png │ ├── GeometryEngine_NearestPoint.png │ ├── GeometryEngine_NearestPoint3D.png │ ├── GeometryEngine_Offset.png │ ├── GeometryEngine_Overlaps.png │ ├── GeometryEngine_ReflectAboutLine.png │ ├── GeometryEngine_ReverseOrientation.png │ ├── GeometryEngine_Rotate3D.png │ ├── GeometryEngine_Scale2D.png │ ├── GeometryEngine_Scale3D.png │ ├── GeometryEngine_Simplify.png │ ├── GeometryEngine_SymmetricDifference.png │ ├── GeometryEngine_Touches.png │ ├── GeometryEngine_Union.png │ ├── GeometryEngine_Within.png │ ├── LineSegment.png │ ├── MultiPart.png │ ├── MultiPart_SplitAtDistance.png │ ├── PolygonSliceBlocks.png │ ├── PolygonSliceStrips.png │ ├── QueryFilletRadius.png │ ├── QueryFilletRadius2.png │ ├── QueryNormal_EmbeddedAtToPositive.png │ ├── QueryNormal_NoExtensionHalfway.png │ ├── QueryNormal_TangentAtToPositive.png │ ├── QueryTangent_ArcWithEmbeddedCircle.png │ ├── QueryTangent_EmbeddedAtToPositive.png │ ├── QueryTangent_NoExtensionHalfway.png │ ├── QueryTangent_TangentAtFromNegative.png │ ├── QueryTangent_TangentAtToPositive.png │ ├── RemoveSegment.png │ ├── RemoveSegment2.png │ ├── Rings.png │ ├── ScaleVector.png │ ├── TangentChordArc.png │ ├── TangentRadiusArc.png │ ├── TriangleFan.png │ ├── TriangleStrip.png │ ├── Triangles.png │ └── Vector3D.png │ ├── ArcGIS.Desktop.Mapping │ ├── CoordinateSystemsControl.png │ ├── CoordinateSystemsDetailsControl.png │ ├── QueryBuilderControl.png │ └── QueryBuilderControl_Query.png │ ├── ArcGIS_Product_Icon.ico │ └── favicon.ico ├── CONTRIBUTING.md ├── DAML ├── ADCore.daml.xml ├── ADGeoDatabase.daml.xml ├── ADGeoProcessing.daml.xml ├── ADKnowledgeGraph.daml.xml ├── ADMapping.daml.xml ├── ADWorkflow.daml.xml ├── ADWorkflowClient.daml.xml ├── ArcGISLayout.daml.xml ├── DataReviewer.daml.xml ├── DesktopExtensions.daml.xml ├── Editing.daml.xml ├── NetworkAnalysisUtilityNetwork.daml.xml └── TaskAssistant.daml.xml ├── Examples ├── Arcade │ ├── Arcade.csproj │ └── Prosnippets.cs ├── Content │ ├── BrowseDialogCodeSamples.cs │ ├── CatalogCodeSamples.cs │ ├── Content.csproj │ ├── Content.sln │ └── ProSnippets.cs ├── CoreHost │ ├── CoreHost.csproj │ ├── CoreHost.sln │ └── ProSnippets.cs ├── Editing │ ├── Concepts.cs │ ├── Editing.csproj │ ├── Editing.sln │ ├── ProSnippet.cs │ └── ProSnippetCS6.cs ├── Framework │ ├── BackstageTab.cs │ ├── Framework.csproj │ ├── Framework.sln │ ├── ProSnippets.cs │ ├── ProWindow1.xaml │ └── ProWindow1.xaml.cs ├── Geodatabase │ ├── 3DAnalystData │ │ └── ProSnippets3DAnalystData.cs │ ├── AttributedRelationshipClass │ │ ├── AttributedRelationshipClassCreateRelationship.cs │ │ ├── AttributedRelationshipClassDeleteRelationship.cs │ │ ├── AttributedRelationshipClassGetRelationshipsForOriginDestination.cs │ │ └── AttributedRelationshipClassGetRowsRelatedToOriginDestination.cs │ ├── CodedValueDomain │ │ └── CodedValueDomainMethods.cs │ ├── Feature │ │ └── FeatureStore.cs │ ├── FeatureClass │ │ ├── FeatureClassCreateRow.cs │ │ ├── FeatureClassSearch.cs │ │ ├── FeatureClassSelect.cs │ │ └── FeatureClassValidate.cs │ ├── FeatureDataset │ │ └── FeatureDatasetOpenDataset.cs │ ├── FeatureService │ │ ├── FeatureServiceGetDefinition.cs │ │ ├── FeatureServiceGetServiceConnectionProperties.cs │ │ ├── FeatureServiceOpen.cs │ │ ├── FeatureServiceOpenDatasetByLayerID.cs │ │ └── FeatureServiceOpenRelationshipClassByLayerID.cs │ ├── Field │ │ ├── FieldGetDefaultValue.cs │ │ └── FieldGetDomain.cs │ ├── Geodatabase │ │ ├── GeodatabaseApplyEdits.cs │ │ ├── GeodatabaseGetDefinition.cs │ │ ├── GeodatabaseGetDefinitions.cs │ │ ├── GeodatabaseGetRelatedDefinitions.cs │ │ ├── GeodatabaseOpenDataset.cs │ │ ├── GeodatabaseOpenEnterprise.cs │ │ └── GeodatabaseOpenFile.cs │ ├── GeodatabaseSDK.csproj │ ├── GeodatabaseSDK.sln │ ├── LinearReferencing │ │ └── ProSnippetsLinearReferencing.cs │ ├── ProSnippets.cs │ ├── RangeDomain │ │ └── RangeDomainMethods.cs │ ├── RelationshipClass │ │ ├── RelationshipClassCreateRelationship.cs │ │ ├── RelationshipClassDeleteRelationship.cs │ │ └── RelationshipClassGetRowsRelatedToOriginDestination.cs │ ├── Row │ │ ├── RowAddAttachment.cs │ │ ├── RowDelete.cs │ │ ├── RowDeleteAttachments.cs │ │ ├── RowFindField.cs │ │ ├── RowGetAttachments.cs │ │ ├── RowOriginalValue.cs │ │ ├── RowStore.cs │ │ ├── RowUpdateAttachment.cs │ │ └── RowValueChanged.cs │ ├── Selection │ │ ├── SelectionAdd.cs │ │ ├── SelectionCombine.cs │ │ ├── SelectionRemove.cs │ │ ├── SelectionSearch.cs │ │ └── SelectionSelect.cs │ ├── Table │ │ ├── TableCreateRow.cs │ │ ├── TableSearch.cs │ │ ├── TableSelect.cs │ │ └── TableValidate.cs │ └── Topology │ │ ├── ProSnippetTopology.cs │ │ └── ProSnippetsTopology.cs ├── Geometry │ ├── Geometry.csproj │ ├── Geometry.sln │ ├── ProSnippets.cs │ └── ProSnippetsGeometryEngine.cs ├── Geoprocessing │ ├── GeoProcessing.csproj │ ├── GeoProcessing.sln │ ├── Geoprocessing_Examples.cs │ └── ProSnippets.cs ├── GraphicsLayers │ ├── GraphicsLayers.csproj │ ├── GraphicsLayers.sln │ └── ProSnippet.cs ├── KnowledgeGraph │ ├── KnowledgeGraph.csproj │ └── ProSnippetsKnowledgeGraph.cs ├── Layouts │ ├── ElementClass.cs │ ├── ExportCodeSamples.cs │ ├── GraphicElementClass.cs │ ├── LayoutClass.cs │ ├── LayoutEvents.cs │ ├── LayoutFactory.cs │ ├── LayoutProjectItemClass.cs │ ├── LayoutViewClass.cs │ ├── Layouts.csproj │ ├── Layouts.sln │ ├── MapFrameClass.cs │ ├── MapSeries.cs │ ├── MapSurroundClass.cs │ ├── MethodSnippets.cs │ ├── PictureElementClass.cs │ ├── ProSnippets.cs │ ├── ProSnippetsPresentations.cs │ ├── ProSnippetsReports.cs │ └── TextElementClass.cs ├── MapAuthoring │ ├── CartoFeatures │ │ ├── Carto_SDK_Examples.cs │ │ └── ProSnippet.cs │ ├── MapAuthoring.csproj │ ├── MapAuthoring.sln │ ├── ProSnippet.cs │ ├── ProSnippetAnnotation.cs │ ├── ProSnippetCharts.cs │ ├── ProSnippetLabeling.cs │ ├── ProSnippetRealtime.cs │ ├── ProSnippetVoxelLayers.cs │ └── ProSnippets3DAnalystLayers.cs ├── MapExploration │ ├── MapExploration.csproj │ ├── MapExploration.sln │ └── ProSnippet.cs ├── ParcelFabric │ ├── ParcelFabric.csproj │ ├── ParcelFabric.sln │ └── ProSnippets.cs ├── Raster │ ├── ProSnippet.cs │ ├── Raster.csproj │ └── Raster.sln ├── RegionToExampleMap.csv ├── Resource1.Designer.cs ├── Resource1.resx ├── SDKExamples2022.sln ├── SceneLayers │ ├── ProSnippets.cs │ ├── ProSnippetsBuildingSceneLayerDiscipline.cs │ ├── ProSnippetsBuildingSceneLayerFilter.cs │ ├── ProSnippetsEditingFeatureSceneLayer.cs │ ├── ProSnippetsFeatureSceneLayer.cs │ ├── ProSnippetsPointCloudSceneLayer.cs │ ├── SceneLayers.csproj │ └── SceneLayers.sln ├── Sharing │ ├── ProSnippets.cs │ ├── ProSnippetsCS6.cs │ ├── Sharing.csproj │ └── Sharing.sln ├── Tasks │ ├── ProSnippets.cs │ ├── Task.csproj │ └── Task.sln ├── UtilityNetwork │ ├── ProSnippets.cs │ ├── UtilityNetwork.csproj │ └── UtilityNetwork.sln └── WorkflowManager │ ├── ProSnippetWorkflowManagerClassic.cs │ ├── Prosnippets.cs │ ├── WorkflowManager.csproj │ └── WorkflowManager.sln ├── Images └── waterAnimation.gif ├── License.txt ├── README.md └── arcgis-pro-sdk.png /.gitignore: -------------------------------------------------------------------------------- 1 | #Data 2 | *.gdb 3 | *.zip 4 | *.7z 5 | *.sqlite 6 | *.bak 7 | 8 | # Build Folders (you can keep bin if you'd like, to store dlls and pdbs) 9 | [Bb]in/ 10 | [Oo]bj/ 11 | .vs/ 12 | 13 | # mstest test results 14 | TestResults 15 | 16 | ## Ignore Visual Studio temporary files, build results, and 17 | ## files generated by popular Visual Studio add-ons. 18 | 19 | # User-specific files 20 | *.suo 21 | *.user 22 | *.sln.docstates 23 | 24 | # Build results 25 | [Dd]ebug/ 26 | [Rr]elease/ 27 | x64/ 28 | *_i.c 29 | *_p.c 30 | *.ilk 31 | *.meta 32 | *.obj 33 | *.pch 34 | *.pdb 35 | *.pgc 36 | *.pgd 37 | *.rsp 38 | *.sbr 39 | *.tlb 40 | *.tli 41 | *.tlh 42 | *.tmp 43 | *.log 44 | *.vspscc 45 | *.vssscc 46 | .builds 47 | 48 | # Visual C++ cache files 49 | ipch/ 50 | *.aps 51 | *.ncb 52 | *.opensdf 53 | *.sdf 54 | 55 | # Visual Studio profiler 56 | *.psess 57 | *.vsp 58 | *.vspx 59 | 60 | # Guidance Automation Toolkit 61 | *.gpState 62 | 63 | # ReSharper is a .NET coding add-in 64 | _ReSharper* 65 | 66 | # NCrunch 67 | *.ncrunch* 68 | .*crunch*.local.xml 69 | 70 | # Installshield output folder 71 | [Ee]xpress 72 | 73 | # DocProject is a documentation generator add-in 74 | DocProject/buildhelp/ 75 | DocProject/Help/*.HxT 76 | DocProject/Help/*.HxC 77 | DocProject/Help/*.hhc 78 | DocProject/Help/*.hhk 79 | DocProject/Help/*.hhp 80 | DocProject/Help/Html2 81 | DocProject/Help/html 82 | 83 | # Click-Once directory 84 | publish 85 | 86 | # Publish Web Output 87 | *.Publish.xml 88 | 89 | # NuGet Packages Directory 90 | packages 91 | 92 | # Windows Azure Build Output 93 | csx 94 | *.build.csdef 95 | 96 | # Windows Store app package directory 97 | AppPackages/ 98 | 99 | # Others 100 | [Bb]in 101 | [Oo]bj 102 | sql 103 | TestResults 104 | [Tt]est[Rr]esult* 105 | *.Cache 106 | ClientBin 107 | [Ss]tyle[Cc]op.* 108 | ~$* 109 | *.dbmdl 110 | Generated_Code #added for RIA/Silverlight projects 111 | 112 | # Backup & report files from converting an old project file to a newer 113 | # Visual Studio version. Backup files are not needed, because we have git ;-) 114 | _UpgradeReport_Files/ 115 | Backup*/ 116 | UpgradeLog*.XML 117 | *.sqlite 118 | /.vs 119 | -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/AddVector.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/AddVector.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/BackFaceCulling.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/BackFaceCulling.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/BezierCurves.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/BezierCurves.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/CircularArcs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/CircularArcs.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/Clothoid1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/Clothoid1.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/Clothoid2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/Clothoid2.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/Clothoid3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/Clothoid3.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/ConstructPolygonsFromPolylines.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/ConstructPolygonsFromPolylines.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/CubeWithNormals.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/CubeWithNormals.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/Envelope_Intersects.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/Envelope_Intersects.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/Envelope_Union.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/Envelope_Union.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/Envelopes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/Envelopes.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/FilletRadius.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/FilletRadius.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_3DAxis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_3DAxis.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Boundary.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Boundary.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Buffer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Buffer.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Clip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Clip.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Contains.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Contains.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_ConvexHull.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_ConvexHull.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Crosses.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Crosses.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Cut.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Cut.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_DensifyByLength.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_DensifyByLength.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Difference.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Difference.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Disjoint.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Disjoint.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Distance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Distance.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Equals.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Equals.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Generalize3D.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Generalize3D.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_GeodesicDensify.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_GeodesicDensify.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Intersects.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Intersects.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Move2D.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Move2D.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Move3D.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Move3D.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_NearestPoint.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_NearestPoint.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_NearestPoint3D.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_NearestPoint3D.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Offset.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Offset.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Overlaps.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Overlaps.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_ReflectAboutLine.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_ReflectAboutLine.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_ReverseOrientation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_ReverseOrientation.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Rotate3D.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Rotate3D.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Scale2D.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Scale2D.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Scale3D.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Scale3D.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Simplify.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Simplify.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_SymmetricDifference.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_SymmetricDifference.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Touches.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Touches.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Union.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Union.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Within.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/GeometryEngine_Within.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/LineSegment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/LineSegment.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/MultiPart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/MultiPart.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/MultiPart_SplitAtDistance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/MultiPart_SplitAtDistance.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/PolygonSliceBlocks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/PolygonSliceBlocks.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/PolygonSliceStrips.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/PolygonSliceStrips.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/QueryFilletRadius.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/QueryFilletRadius.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/QueryFilletRadius2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/QueryFilletRadius2.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/QueryNormal_EmbeddedAtToPositive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/QueryNormal_EmbeddedAtToPositive.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/QueryNormal_NoExtensionHalfway.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/QueryNormal_NoExtensionHalfway.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/QueryNormal_TangentAtToPositive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/QueryNormal_TangentAtToPositive.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/QueryTangent_ArcWithEmbeddedCircle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/QueryTangent_ArcWithEmbeddedCircle.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/QueryTangent_EmbeddedAtToPositive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/QueryTangent_EmbeddedAtToPositive.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/QueryTangent_NoExtensionHalfway.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/QueryTangent_NoExtensionHalfway.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/QueryTangent_TangentAtFromNegative.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/QueryTangent_TangentAtFromNegative.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/QueryTangent_TangentAtToPositive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/QueryTangent_TangentAtToPositive.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/RemoveSegment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/RemoveSegment.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/RemoveSegment2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/RemoveSegment2.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/Rings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/Rings.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/ScaleVector.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/ScaleVector.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/TangentChordArc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/TangentChordArc.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/TangentRadiusArc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/TangentRadiusArc.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/TriangleFan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/TriangleFan.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/TriangleStrip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/TriangleStrip.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/Triangles.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/Triangles.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Core.Geometry/Vector3D.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Core.Geometry/Vector3D.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Desktop.Mapping/CoordinateSystemsControl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Desktop.Mapping/CoordinateSystemsControl.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Desktop.Mapping/CoordinateSystemsDetailsControl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Desktop.Mapping/CoordinateSystemsDetailsControl.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Desktop.Mapping/QueryBuilderControl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Desktop.Mapping/QueryBuilderControl.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS.Desktop.Mapping/QueryBuilderControl_Query.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS.Desktop.Mapping/QueryBuilderControl_Query.png -------------------------------------------------------------------------------- /APIRefImages/Images/ArcGIS_Product_Icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/ArcGIS_Product_Icon.ico -------------------------------------------------------------------------------- /APIRefImages/Images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/APIRefImages/Images/favicon.ico -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Esri welcomes contributions from anyone and everyone. Please see our [guidelines for contributing](https://github.com/esri/contributing). 2 | 3 | ​ 4 | -------------------------------------------------------------------------------- /DAML/DesktopExtensions.daml.xml: -------------------------------------------------------------------------------- 1 |  2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Examples/Arcade/Arcade.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | net8.0 5 | enable 6 | enable 7 | x64 8 | 9 | 10 | 11 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Core\ArcGIS.Desktop.Core.dll 12 | False 13 | 14 | 15 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Mapping\ArcGIS.Desktop.Mapping.dll 16 | False 17 | 18 | 19 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Framework.dll 20 | False 21 | 22 | 23 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Core.dll 24 | False 25 | 26 | 27 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Editing\ArcGIS.Desktop.Editing.dll 28 | False 29 | 30 | 31 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Catalog\ArcGIS.Desktop.Catalog.dll 32 | False 33 | 34 | 35 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DesktopExtensions\ArcGIS.Desktop.Extensions.dll 36 | False 37 | 38 | 39 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Shared.Wpf.dll 40 | False 41 | 42 | 43 | C:\Program Files\ArcGIS\Pro\bin\Extensions\ArcGISSearch\ArcGIS.Desktop.Search.dll 44 | False 45 | 46 | 47 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataSourcesRaster\ArcGIS.Desktop.DataSourcesRaster.dll 48 | False 49 | 50 | 51 | C:\Program Files\ArcGIS\Pro\bin\Extensions\GeoProcessing\ArcGIS.Desktop.GeoProcessing.dll 52 | False 53 | 54 | 55 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Layout\ArcGIS.Desktop.Layouts.dll 56 | False 57 | 58 | 59 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Sharing\ArcGIS.Desktop.Sharing.dll 60 | False 61 | 62 | 63 | C:\Program Files\ArcGIS\Pro\bin\Extensions\TaskAssistant\ArcGIS.Desktop.TaskAssistant.dll 64 | False 65 | 66 | 67 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.CoreHost.dll 68 | False 69 | 70 | 71 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataReviewer\ArcGIS.Desktop.DataReviewer.dll 72 | False 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /Examples/Content/BrowseDialogCodeSamples.cs: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright 2018 Esri 4 | 5 | Licensed under the Apache License, Version 2.0 (the "License"); 6 | you may not use this file except in compliance with the License. 7 | You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | 15 | See the License for the specific language governing permissions and 16 | limitations under the License. 17 | 18 | */ 19 | using System; 20 | using System.Collections.Generic; 21 | using System.Linq; 22 | using System.Text; 23 | using System.Threading.Tasks; 24 | using ArcGIS.Desktop.Core; 25 | using ArcGIS.Desktop.Mapping; 26 | 27 | namespace ArcGIS.Desktop.Catalog.ApiTests.CodeSamples 28 | { 29 | class BrowseDialogCodeSamples 30 | { 31 | /// 32 | /// Code Samples for Browse Dialog 33 | /// 34 | public void BrowseDialogCodeSample() 35 | { 36 | // Variables not used in samples 37 | OpenItemDialog selectItemDialog = new OpenItemDialog(); // in #region BrowseDialogItems 38 | 39 | // cref: OpenItemDialog;ArcGIS.Desktop.Catalog.ItemDialog.Filter 40 | // cref: OpenItemDialog;ArcGIS.Desktop.Catalog.ItemDialog.InitialLocation 41 | // cref: OpenItemDialog;ArcGIS.Desktop.Catalog.ItemDialog.Title 42 | // cref: OpenItemDialog;ArcGIS.Desktop.Catalog.OpenItemDialog 43 | #region OpenItemDialog 44 | 45 | /// Adds a single item to a map 46 | OpenItemDialog addToMapDialog = new OpenItemDialog() 47 | { 48 | Title = "Add To Map", 49 | InitialLocation = @"C:\Data\NewYork\Counties\Erie\Streets", 50 | Filter = ItemFilters.Composite_AddToMap 51 | }; 52 | 53 | #endregion //OpenItemDialog 54 | 55 | // cref: Show_OpenItemDialog;ArcGIS.Desktop.Catalog.OpenItemDialog.ShowDialog 56 | // cref: Show_OpenItemDialog;ArcGIS.Desktop.Catalog.SaveItemDialog.ShowDialog 57 | // cref: Show_OpenItemDialog;ArcGIS.Desktop.Catalog.OpenItemDialog.Items 58 | // cref: Show_OpenItemDialog;ArcGIS.Desktop.Catalog.OpenItemDialog.MultiSelect 59 | #region Show_OpenItemDialog 60 | 61 | OpenItemDialog addToProjectDialog = new OpenItemDialog(); 62 | addToProjectDialog.Title = "Add To Project"; 63 | addToProjectDialog.InitialLocation = @"C:\Data\NewYork\Counties\Maps"; 64 | addToProjectDialog.MultiSelect = true; 65 | addToProjectDialog.Filter = ItemFilters.Composite_Maps_Import; 66 | 67 | bool? ok = addToMapDialog.ShowDialog(); 68 | 69 | if (ok == true) 70 | { 71 | IEnumerable selectedItems = addToMapDialog.Items; 72 | foreach (Item selectedItem in selectedItems) 73 | MapFactory.Instance.CreateMapFromItem(selectedItem); 74 | } 75 | 76 | #endregion //Show_OpenItemDialog 77 | 78 | // cref: SaveItemDialog;ArcGIS.Desktop.Catalog.ItemDialog.Filter 79 | // cref: SaveItemDialog;ArcGIS.Desktop.Catalog.ItemDialog.InitialLocation 80 | // cref: SaveItemDialog;ArcGIS.Desktop.Catalog.ItemDialog.Title 81 | // cref: SaveItemDialog;ArcGIS.Desktop.Catalog.SaveItemDialog 82 | #region SaveItemDialog 83 | 84 | SaveItemDialog saveLayerFileDialog = new SaveItemDialog() 85 | { 86 | Title = "Save Layer File", 87 | InitialLocation = @"C:\Data\ProLayers\Geographic\Streets", 88 | Filter = ItemFilters.Files_All 89 | }; 90 | 91 | #endregion //SaveItemDialog 92 | 93 | // cref: Show_SaveItemDialog;ArcGIS.Desktop.Catalog.SaveItemDialog.DefaultExt 94 | // cref: Show_SaveItemDialog;ArcGIS.Desktop.Catalog.SaveItemDialog.FilePath 95 | // cref: Show_SaveItemDialog;ArcGIS.Desktop.Catalog.SaveItemDialog.OverwritePrompt 96 | #region Show_SaveItemDialog 97 | 98 | SaveItemDialog saveMapFileDialog = new SaveItemDialog() 99 | { 100 | Title = "Save Map File", 101 | InitialLocation = @"C:\Data\NewYork\Counties\Maps", 102 | DefaultExt = @"mapx", 103 | Filter = ItemFilters.Maps_All, 104 | OverwritePrompt = true 105 | }; 106 | bool? result = saveMapFileDialog.ShowDialog(); 107 | 108 | if (result == true) 109 | { 110 | ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show("Returned file name: " + saveMapFileDialog.FilePath); 111 | } 112 | 113 | #endregion //Show_SaveItemDialog 114 | 115 | // cref: ArcGIS.Desktop.Catalog.OpenItemDialog.Items 116 | // cref: ArcGIS.Desktop.Catalog.OpenItemDialog 117 | // cref: BrowseDialogItems;ArcGIS.Desktop.Mapping.MapFactory.CreateMapFromItem 118 | #region BrowseDialogItems 119 | 120 | IEnumerable selectedDialogItems = selectItemDialog.Items; 121 | foreach (Item selectedDialogItem in selectedDialogItems) 122 | Mapping.MapFactory.Instance.CreateMapFromItem(selectedDialogItem); 123 | 124 | #endregion //BrowseDialogItems 125 | 126 | } 127 | 128 | } 129 | } 130 | -------------------------------------------------------------------------------- /Examples/Content/Content.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | net8.0-windows7.0 4 | true 5 | win10-x64 6 | false 7 | true 8 | CA1416 9 | 10 | 11 | 12 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Core\ArcGIS.Desktop.Core.dll 13 | False 14 | 15 | 16 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Mapping\ArcGIS.Desktop.Mapping.dll 17 | False 18 | 19 | 20 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Framework.dll 21 | False 22 | 23 | 24 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Core.dll 25 | False 26 | 27 | 28 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Editing\ArcGIS.Desktop.Editing.dll 29 | False 30 | 31 | 32 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Catalog\ArcGIS.Desktop.Catalog.dll 33 | False 34 | 35 | 36 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DesktopExtensions\ArcGIS.Desktop.Extensions.dll 37 | False 38 | 39 | 40 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Shared.Wpf.dll 41 | False 42 | 43 | 44 | C:\Program Files\ArcGIS\Pro\bin\Extensions\ArcGISSearch\ArcGIS.Desktop.Search.dll 45 | False 46 | 47 | 48 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataSourcesRaster\ArcGIS.Desktop.DataSourcesRaster.dll 49 | False 50 | 51 | 52 | C:\Program Files\ArcGIS\Pro\bin\Extensions\GeoProcessing\ArcGIS.Desktop.GeoProcessing.dll 53 | False 54 | 55 | 56 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Layout\ArcGIS.Desktop.Layouts.dll 57 | False 58 | 59 | 60 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Sharing\ArcGIS.Desktop.Sharing.dll 61 | False 62 | 63 | 64 | C:\Program Files\ArcGIS\Pro\bin\Extensions\TaskAssistant\ArcGIS.Desktop.TaskAssistant.dll 65 | False 66 | 67 | 68 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.CoreHost.dll 69 | False 70 | 71 | 72 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataReviewer\ArcGIS.Desktop.DataReviewer.dll 73 | False 74 | 75 | 76 | -------------------------------------------------------------------------------- /Examples/Content/Content.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.3.32922.545 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Content", "Content.csproj", "{AE1296BC-956A-4AB3-9C01-4CA3E8759C0A}" 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 | {AE1296BC-956A-4AB3-9C01-4CA3E8759C0A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {AE1296BC-956A-4AB3-9C01-4CA3E8759C0A}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {AE1296BC-956A-4AB3-9C01-4CA3E8759C0A}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {AE1296BC-956A-4AB3-9C01-4CA3E8759C0A}.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 = {2F2A8509-62CE-4389-8D3F-699041C9C5F7} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /Examples/CoreHost/CoreHost.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | net8.0-windows7.0 4 | true 5 | win10-x64 6 | false 7 | true 8 | CA1416 9 | 10 | 11 | 12 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Core\ArcGIS.Desktop.Core.dll 13 | False 14 | 15 | 16 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Mapping\ArcGIS.Desktop.Mapping.dll 17 | False 18 | 19 | 20 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Framework.dll 21 | False 22 | 23 | 24 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Core.dll 25 | False 26 | 27 | 28 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Editing\ArcGIS.Desktop.Editing.dll 29 | False 30 | 31 | 32 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Catalog\ArcGIS.Desktop.Catalog.dll 33 | False 34 | 35 | 36 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DesktopExtensions\ArcGIS.Desktop.Extensions.dll 37 | False 38 | 39 | 40 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Shared.Wpf.dll 41 | False 42 | 43 | 44 | C:\Program Files\ArcGIS\Pro\bin\Extensions\ArcGISSearch\ArcGIS.Desktop.Search.dll 45 | False 46 | 47 | 48 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataSourcesRaster\ArcGIS.Desktop.DataSourcesRaster.dll 49 | False 50 | 51 | 52 | C:\Program Files\ArcGIS\Pro\bin\Extensions\GeoProcessing\ArcGIS.Desktop.GeoProcessing.dll 53 | False 54 | 55 | 56 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Layout\ArcGIS.Desktop.Layouts.dll 57 | False 58 | 59 | 60 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Sharing\ArcGIS.Desktop.Sharing.dll 61 | False 62 | 63 | 64 | C:\Program Files\ArcGIS\Pro\bin\Extensions\TaskAssistant\ArcGIS.Desktop.TaskAssistant.dll 65 | False 66 | 67 | 68 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.CoreHost.dll 69 | False 70 | 71 | 72 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataReviewer\ArcGIS.Desktop.DataReviewer.dll 73 | False 74 | 75 | 76 | -------------------------------------------------------------------------------- /Examples/CoreHost/CoreHost.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.1.32319.34 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CoreHost", "CoreHost.csproj", "{902E3EE4-F601-46CA-8E82-C0F5B3526364}" 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 | {902E3EE4-F601-46CA-8E82-C0F5B3526364}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {902E3EE4-F601-46CA-8E82-C0F5B3526364}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {902E3EE4-F601-46CA-8E82-C0F5B3526364}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {902E3EE4-F601-46CA-8E82-C0F5B3526364}.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 = {97542333-D3E6-4328-B509-87C6F28AFD4D} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /Examples/CoreHost/ProSnippets.cs: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright 2018 Esri 4 | 5 | Licensed under the Apache License, Version 2.0 (the "License"); 6 | you may not use this file except in compliance with the License. 7 | You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | 15 | See the License for the specific language governing permissions and 16 | limitations under the License. 17 | 18 | */ 19 | using System; 20 | using System.Collections.Generic; 21 | 22 | namespace ConsoleApplication1 { 23 | 24 | // cref: ArcGIS.Core.Hosting.Host.Initialize() 25 | #region Initializing Core Host 26 | using ArcGIS.Core.Data; 27 | //There must be a reference to ArcGIS.CoreHost.dll 28 | using ArcGIS.Core.Hosting; 29 | 30 | class Program { 31 | //[STAThread] must be present on the Application entry point 32 | [STAThread] 33 | static void Main(string[] args) { 34 | 35 | //Call Host.Initialize before constructing any objects from ArcGIS.Core 36 | try { 37 | Host.Initialize(); 38 | } 39 | catch (Exception e) { 40 | // Error (missing installation, no license, 64 bit mismatch, etc.) 41 | Console.WriteLine(string.Format("Initialization failed: {0}",e.Message)); 42 | return; 43 | } 44 | 45 | //if we are here, ArcGIS.Core is successfully initialized 46 | Geodatabase gdb = new Geodatabase(new FileGeodatabaseConnectionPath(new Uri(@"C:\Data\SDK\GDB\MySampleData.gdb"))); 47 | IReadOnlyList definitions = gdb.GetDefinitions(); 48 | 49 | foreach (var fdsDef in definitions) { 50 | Console.WriteLine(TableString(fdsDef as TableDefinition)); 51 | } 52 | Console.Read(); 53 | } 54 | 55 | private static string TableString(TableDefinition table) { 56 | string alias = table.GetAliasName(); 57 | string name = table.GetName(); 58 | return string.Format("{0} ({1})", alias.Length > 0 ? alias : name, name); 59 | } 60 | } 61 | #endregion 62 | } 63 | -------------------------------------------------------------------------------- /Examples/Editing/Editing.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | net8.0-windows7.0 4 | true 5 | win10-x64 6 | false 7 | true 8 | CA1416 9 | 10 | 11 | 12 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Core\ArcGIS.Desktop.Core.dll 13 | False 14 | 15 | 16 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Mapping\ArcGIS.Desktop.Mapping.dll 17 | False 18 | 19 | 20 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Framework.dll 21 | False 22 | 23 | 24 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Core.dll 25 | False 26 | 27 | 28 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Editing\ArcGIS.Desktop.Editing.dll 29 | False 30 | 31 | 32 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Catalog\ArcGIS.Desktop.Catalog.dll 33 | False 34 | 35 | 36 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DesktopExtensions\ArcGIS.Desktop.Extensions.dll 37 | False 38 | 39 | 40 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Shared.Wpf.dll 41 | False 42 | 43 | 44 | C:\Program Files\ArcGIS\Pro\bin\Extensions\ArcGISSearch\ArcGIS.Desktop.Search.dll 45 | False 46 | 47 | 48 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataSourcesRaster\ArcGIS.Desktop.DataSourcesRaster.dll 49 | False 50 | 51 | 52 | C:\Program Files\ArcGIS\Pro\bin\Extensions\GeoProcessing\ArcGIS.Desktop.GeoProcessing.dll 53 | False 54 | 55 | 56 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Layout\ArcGIS.Desktop.Layouts.dll 57 | False 58 | 59 | 60 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Sharing\ArcGIS.Desktop.Sharing.dll 61 | False 62 | 63 | 64 | C:\Program Files\ArcGIS\Pro\bin\Extensions\TaskAssistant\ArcGIS.Desktop.TaskAssistant.dll 65 | False 66 | 67 | 68 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.CoreHost.dll 69 | False 70 | 71 | 72 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataReviewer\ArcGIS.Desktop.DataReviewer.dll 73 | False 74 | 75 | 76 | -------------------------------------------------------------------------------- /Examples/Editing/Editing.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.2.32802.462 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Editing", "Editing.csproj", "{F42BB5FD-D9D1-4D6A-9421-013E7155FE79}" 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 | {F42BB5FD-D9D1-4D6A-9421-013E7155FE79}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {F42BB5FD-D9D1-4D6A-9421-013E7155FE79}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {F42BB5FD-D9D1-4D6A-9421-013E7155FE79}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {F42BB5FD-D9D1-4D6A-9421-013E7155FE79}.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 = {C20E5EB3-DB69-4353-A085-EE0C747A1757} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /Examples/Framework/BackstageTab.cs: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright 2018 Esri 4 | 5 | Licensed under the Apache License, Version 2.0 (the "License"); 6 | you may not use this file except in compliance with the License. 7 | You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | 15 | See the License for the specific language governing permissions and 16 | limitations under the License. 17 | 18 | */ 19 | using ArcGIS.Desktop.Framework; 20 | using System.Windows.Input; 21 | 22 | internal class AcmeBackstageVM : ArcGIS.Desktop.Framework.Contracts.BackstageTab 23 | { 24 | private string _message; 25 | private RelayCommand _testCommand; 26 | 27 | public AcmeBackstageVM() 28 | { 29 | _testCommand = new RelayCommand(() => DoSomething(), false); 30 | } 31 | 32 | public ICommand TestCommand { get { return _testCommand; } } 33 | 34 | public string Message 35 | { 36 | get { return _message; } 37 | set 38 | { 39 | SetProperty(ref _message, value, () => Message); 40 | } 41 | } 42 | 43 | private void DoSomething() 44 | { 45 | Message = "Hello World!"; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /Examples/Framework/Framework.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | net8.0-windows7.0 4 | true 5 | win10-x64 6 | false 7 | true 8 | CA1416 9 | 10 | 11 | 12 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Core\ArcGIS.Desktop.Core.dll 13 | False 14 | 15 | 16 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Mapping\ArcGIS.Desktop.Mapping.dll 17 | False 18 | 19 | 20 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Framework.dll 21 | False 22 | 23 | 24 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Core.dll 25 | False 26 | 27 | 28 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Editing\ArcGIS.Desktop.Editing.dll 29 | False 30 | 31 | 32 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Catalog\ArcGIS.Desktop.Catalog.dll 33 | False 34 | 35 | 36 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DesktopExtensions\ArcGIS.Desktop.Extensions.dll 37 | False 38 | 39 | 40 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Shared.Wpf.dll 41 | False 42 | 43 | 44 | C:\Program Files\ArcGIS\Pro\bin\Extensions\ArcGISSearch\ArcGIS.Desktop.Search.dll 45 | False 46 | 47 | 48 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataSourcesRaster\ArcGIS.Desktop.DataSourcesRaster.dll 49 | False 50 | 51 | 52 | C:\Program Files\ArcGIS\Pro\bin\Extensions\GeoProcessing\ArcGIS.Desktop.GeoProcessing.dll 53 | False 54 | 55 | 56 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Layout\ArcGIS.Desktop.Layouts.dll 57 | False 58 | 59 | 60 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Sharing\ArcGIS.Desktop.Sharing.dll 61 | False 62 | 63 | 64 | C:\Program Files\ArcGIS\Pro\bin\Extensions\TaskAssistant\ArcGIS.Desktop.TaskAssistant.dll 65 | False 66 | 67 | 68 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.CoreHost.dll 69 | False 70 | 71 | 72 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataReviewer\ArcGIS.Desktop.DataReviewer.dll 73 | False 74 | 75 | 76 | -------------------------------------------------------------------------------- /Examples/Framework/Framework.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.2.32802.462 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Framework", "Framework.csproj", "{0E928413-B2F9-4E56-B10B-6AA8669FBEBE}" 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 | {0E928413-B2F9-4E56-B10B-6AA8669FBEBE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {0E928413-B2F9-4E56-B10B-6AA8669FBEBE}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {0E928413-B2F9-4E56-B10B-6AA8669FBEBE}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {0E928413-B2F9-4E56-B10B-6AA8669FBEBE}.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 = {46C33EF5-51AA-4882-AF5A-573016A26705} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /Examples/Framework/ProWindow1.xaml: -------------------------------------------------------------------------------- 1 |  10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Examples/Framework/ProWindow1.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows; 7 | using System.Windows.Controls; 8 | using System.Windows.Data; 9 | using System.Windows.Documents; 10 | using System.Windows.Input; 11 | using System.Windows.Media; 12 | using System.Windows.Media.Imaging; 13 | using System.Windows.Navigation; 14 | using System.Windows.Shapes; 15 | 16 | namespace Framework 17 | { 18 | /// 19 | /// Interaction logic for ProWindow1.xaml 20 | /// 21 | public partial class ProWindow1 : ArcGIS.Desktop.Framework.Controls.ProWindow 22 | { 23 | public ProWindow1(double left, double top) 24 | { 25 | this.Left = left; 26 | this.Top = top; 27 | InitializeComponent(); 28 | 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Examples/Geodatabase/FeatureService/FeatureServiceGetDefinition.cs: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright 2018 Esri 4 | 5 | Licensed under the Apache License, Version 2.0 (the "License"); 6 | you may not use this file except in compliance with the License. 7 | You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | 15 | See the License for the specific language governing permissions and 16 | limitations under the License. 17 | 18 | */ 19 | using System; 20 | using System.Collections.Generic; 21 | using System.Threading.Tasks; 22 | using ArcGIS.Core.Data; 23 | using ArcGIS.Desktop.Framework.Threading.Tasks; 24 | 25 | namespace SDKExamples.GeodatabaseSDK.FeatureService 26 | { 27 | /// 28 | /// Illustrates how to open a feature service (i.e., a web geodatabase) for different configurations. 29 | /// 30 | /// 31 | /// 32 | /// 33 | /// While it is true classes that are derived from the super class 34 | /// consumes native resources (e.g., or ), 35 | /// you can rest assured that the garbage collector will properly dispose of the unmanaged resources during 36 | /// finalization. However, there are certain workflows that require a deterministic finalization of the 37 | /// . Consider the case of a file geodatabase that needs to be deleted 38 | /// on the fly at a particular moment. Because of the indeterministic nature of garbage collection, we can't 39 | /// count on the garbage collector to dispose of the Geodatabase object, thereby removing the lock(s) at the 40 | /// moment we want. To ensure a deterministic finalization of important native resources such as a 41 | /// or , you should declare 42 | /// and instantiate said objects in a using statement. Alternatively, you can achieve the same result by 43 | /// putting the object inside a try block and then calling Dispose() in a finally block. 44 | /// 45 | /// 46 | /// In general, you should always call Dispose() on the following types of objects: 47 | /// 48 | /// 49 | /// - Those that are derived from (e.g., ). 50 | /// 51 | /// 52 | /// - Those that are derived from (e.g., ). 53 | /// 54 | /// 55 | /// - and . 56 | /// 57 | /// 58 | /// - and . 59 | /// 60 | /// 61 | /// - . 62 | /// 63 | /// 64 | /// - and . 65 | /// 66 | /// 67 | public class FeatureServiceGetDefinition 68 | { 69 | /// 70 | /// In order to illustrate that feature service calls have to be made on the MCT. 71 | /// 72 | /// 73 | public async Task FeatureServiceGetDefinitionAsync() 74 | { 75 | await QueuedTask.Run(() => MainMethodCode()); 76 | } 77 | 78 | public void MainMethodCode() 79 | { 80 | Uri serviceUrl = new Uri("https://arcgis.server.example.com:6443/arcgis/rest/services/FeatureServiceName/FeatureServer"); 81 | 82 | ServiceConnectionProperties arcGisServer = new ServiceConnectionProperties(serviceUrl) 83 | { 84 | User = "serverUser", 85 | Password = "serverPassword" 86 | }; 87 | 88 | using (Geodatabase serverFeatureService = new Geodatabase(arcGisServer)) 89 | { 90 | FeatureClassDefinition featureClassDefinition = serverFeatureService.GetDefinition("0"); 91 | string shapeField = featureClassDefinition.GetShapeField(); 92 | IReadOnlyList fields = featureClassDefinition.GetFields(); 93 | 94 | TableDefinition tableDefinition = serverFeatureService.GetDefinition("4"); 95 | string objectIDField = tableDefinition.GetObjectIDField(); 96 | } 97 | } 98 | } 99 | } -------------------------------------------------------------------------------- /Examples/Geodatabase/FeatureService/FeatureServiceGetServiceConnectionProperties.cs: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright 2018 Esri 4 | 5 | Licensed under the Apache License, Version 2.0 (the "License"); 6 | you may not use this file except in compliance with the License. 7 | You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | 15 | See the License for the specific language governing permissions and 16 | limitations under the License. 17 | 18 | */ 19 | using System; 20 | using System.Threading.Tasks; 21 | using ArcGIS.Core.Data; 22 | using ArcGIS.Desktop.Framework.Threading.Tasks; 23 | using ArcGIS.Desktop.Mapping; 24 | 25 | namespace SDKExamples.GeodatabaseSDK.FeatureService 26 | { 27 | /// 28 | /// Illustrates how to open a feature service (i.e., a web geodatabase) for different configurations. 29 | /// 30 | /// 31 | /// 32 | /// 33 | /// While it is true classes that are derived from the super class 34 | /// consumes native resources (e.g., or ), 35 | /// you can rest assured that the garbage collector will properly dispose of the unmanaged resources during 36 | /// finalization. However, there are certain workflows that require a deterministic finalization of the 37 | /// . Consider the case of a file geodatabase that needs to be deleted 38 | /// on the fly at a particular moment. Because of the indeterministic nature of garbage collection, we can't 39 | /// count on the garbage collector to dispose of the Geodatabase object, thereby removing the lock(s) at the 40 | /// moment we want. To ensure a deterministic finalization of important native resources such as a 41 | /// or , you should declare 42 | /// and instantiate said objects in a using statement. Alternatively, you can achieve the same result by 43 | /// putting the object inside a try block and then calling Dispose() in a finally block. 44 | /// 45 | /// 46 | /// In general, you should always call Dispose() on the following types of objects: 47 | /// 48 | /// 49 | /// - Those that are derived from (e.g., ). 50 | /// 51 | /// 52 | /// - Those that are derived from (e.g., ). 53 | /// 54 | /// 55 | /// - and . 56 | /// 57 | /// 58 | /// - and . 59 | /// 60 | /// 61 | /// - . 62 | /// 63 | /// 64 | /// - and . 65 | /// 66 | /// 67 | public class FeatureServiceGetConnectionProperties 68 | { 69 | /// 70 | /// In order to illustrate that feature service calls have to be made on the MCT. 71 | /// 72 | /// 73 | public async Task FeatureServiceGetConnectionPropertiesAsync() 74 | { 75 | await QueuedTask.Run(() => MainMethodCode()); 76 | } 77 | 78 | public void MainMethodCode() 79 | { 80 | Layer selectedLayer = MapView.Active.GetSelectedLayers()[0]; 81 | 82 | if (selectedLayer is FeatureLayer) 83 | { 84 | FeatureLayer featureLayer = selectedLayer as FeatureLayer; 85 | 86 | using (Table table = featureLayer.GetTable()) 87 | using (Datastore datastore = table.GetDatastore()) 88 | { 89 | ServiceConnectionProperties serviceConnectionProperties = datastore.GetConnector() as ServiceConnectionProperties; 90 | 91 | if (serviceConnectionProperties == null) 92 | return; 93 | 94 | Uri url = serviceConnectionProperties.URL; // Will be the URL to the Feature Service. 95 | string user = serviceConnectionProperties.User; // The username property will only be populated for feature service hosted on non-federated ArcGIS Server. 96 | string password = serviceConnectionProperties.Password; // Will always be empty. 97 | } 98 | } 99 | } 100 | } 101 | } -------------------------------------------------------------------------------- /Examples/Geodatabase/FeatureService/FeatureServiceOpenDatasetByLayerID.cs: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright 2018 Esri 4 | 5 | Licensed under the Apache License, Version 2.0 (the "License"); 6 | you may not use this file except in compliance with the License. 7 | You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | 15 | See the License for the specific language governing permissions and 16 | limitations under the License. 17 | 18 | */ 19 | using System; 20 | using System.Threading.Tasks; 21 | using ArcGIS.Core.Data; 22 | using ArcGIS.Desktop.Framework.Threading.Tasks; 23 | 24 | namespace SDKExamples.GeodatabaseSDK.FeatureService 25 | { 26 | /// 27 | /// Illustrates how to open a Dataset from a feature service (i.e., a web geodatabase). 28 | /// 29 | /// 30 | /// 31 | /// 32 | /// While it is true classes that are derived from the super class 33 | /// consumes native resources (e.g., or ), 34 | /// you can rest assured that the garbage collector will properly dispose of the unmanaged resources during 35 | /// finalization. However, there are certain workflows that require a deterministic finalization of the 36 | /// . Consider the case of a file geodatabase that needs to be deleted 37 | /// on the fly at a particular moment. Because of the indeterministic nature of garbage collection, we can't 38 | /// count on the garbage collector to dispose of the Geodatabase object, thereby removing the lock(s) at the 39 | /// moment we want. To ensure a deterministic finalization of important native resources such as a 40 | /// or , you should declare 41 | /// and instantiate said objects in a using statement. Alternatively, you can achieve the same result by 42 | /// putting the object inside a try block and then calling Dispose() in a finally block. 43 | /// 44 | /// 45 | /// In general, you should always call Dispose() on the following types of objects: 46 | /// 47 | /// 48 | /// - Those that are derived from (e.g., ). 49 | /// 50 | /// 51 | /// - Those that are derived from (e.g., ). 52 | /// 53 | /// 54 | /// - and . 55 | /// 56 | /// 57 | /// - and . 58 | /// 59 | /// 60 | /// - . 61 | /// 62 | /// 63 | /// - and . 64 | /// 65 | /// 66 | public class FeatureServiceOpenDatasetByLayerID 67 | { 68 | /// 69 | /// In order to illustrate that feature service calls have to be made on the MCT. 70 | /// 71 | /// 72 | public async Task GeodatabaseOpenDatasetAsync() 73 | { 74 | await QueuedTask.Run(() => MainMethodCode()); 75 | } 76 | 77 | public void MainMethodCode() 78 | { 79 | Uri arcgisOnlineURL = new Uri("http://services1.arcgis.com/47GG2ga246DGaLwa/arcgis/rest/services/FeatureServiceName/FeatureServer"); 80 | 81 | ServiceConnectionProperties arcGISOnline = new ServiceConnectionProperties(arcgisOnlineURL); 82 | 83 | using (Geodatabase featureService = new Geodatabase(arcGISOnline)) 84 | { 85 | using (FeatureClass featureClass = featureService.OpenDataset("0")) 86 | { 87 | // Use the feature class opened from layer ID 0. 88 | } 89 | 90 | using (Table table = featureService.OpenDataset("4")) 91 | { 92 | // Use the table opened from layer ID 4. 93 | } 94 | 95 | using (AttributedRelationshipClass attributedRelationshipClass = featureService.OpenDataset("5")) 96 | { 97 | // Use the attributed relationship class opened from layer ID 5. 98 | } 99 | 100 | try 101 | { 102 | string idOfLayerWhichIsNotTable = "3"; 103 | featureService.OpenDataset
(idOfLayerWhichIsNotTable); 104 | } 105 | catch (InvalidOperationException) 106 | { 107 | // Handle Exception. 108 | } 109 | } 110 | } 111 | } 112 | } -------------------------------------------------------------------------------- /Examples/Geodatabase/FeatureService/FeatureServiceOpenRelationshipClassByLayerID.cs: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright 2018 Esri 4 | 5 | Licensed under the Apache License, Version 2.0 (the "License"); 6 | you may not use this file except in compliance with the License. 7 | You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | 15 | See the License for the specific language governing permissions and 16 | limitations under the License. 17 | 18 | */ 19 | using System; 20 | using System.Collections.Generic; 21 | using System.Threading.Tasks; 22 | using ArcGIS.Core.Data; 23 | using ArcGIS.Desktop.Framework.Threading.Tasks; 24 | 25 | namespace SDKExamples.GeodatabaseSDK.FeatureService 26 | { 27 | /// 28 | /// Illustrates how to open a RelationshipClass from a feature service (i.e., a web geodatabase). 29 | /// 30 | /// 31 | /// 32 | /// 33 | /// While it is true classes that are derived from the super class 34 | /// consumes native resources (e.g., or ), 35 | /// you can rest assured that the garbage collector will properly dispose of the unmanaged resources during 36 | /// finalization. However, there are certain workflows that require a deterministic finalization of the 37 | /// . Consider the case of a file geodatabase that needs to be deleted 38 | /// on the fly at a particular moment. Because of the indeterministic nature of garbage collection, we can't 39 | /// count on the garbage collector to dispose of the Geodatabase object, thereby removing the lock(s) at the 40 | /// moment we want. To ensure a deterministic finalization of important native resources such as a 41 | /// or , you should declare 42 | /// and instantiate said objects in a using statement. Alternatively, you can achieve the same result by 43 | /// putting the object inside a try block and then calling Dispose() in a finally block. 44 | /// 45 | /// 46 | /// In general, you should always call Dispose() on the following types of objects: 47 | /// 48 | /// 49 | /// - Those that are derived from (e.g., ). 50 | /// 51 | /// 52 | /// - Those that are derived from (e.g., ). 53 | /// 54 | /// 55 | /// - and . 56 | /// 57 | /// 58 | /// - and . 59 | /// 60 | /// 61 | /// - . 62 | /// 63 | /// 64 | /// - and . 65 | /// 66 | /// 67 | public class FeatureServiceOpenRelationshipClassByLayerID 68 | { 69 | /// 70 | /// In order to illustrate that feature service calls have to be made on the MCT. 71 | /// 72 | /// 73 | public async Task GeodatabaseOpenRelationshipClassAsync() 74 | { 75 | await QueuedTask.Run(() => MainMethodCode()); 76 | } 77 | 78 | public void MainMethodCode() 79 | { 80 | Uri arcgisOnlineURL = new Uri("http://services1.arcgis.com/47GG2ga246DGaLwa/arcgis/rest/services/FeatureServiceName/FeatureServer"); 81 | 82 | ServiceConnectionProperties arcGISOnline = new ServiceConnectionProperties(arcgisOnlineURL); 83 | 84 | using (Geodatabase featureService = new Geodatabase(arcGISOnline)) 85 | { 86 | //These are the relationship clases where the origin layer ID is 0 and destination layer ID is 1 87 | //At 2.x - IReadOnlyList relationshipClasses = featureService.OpenRelationshipClass("0", "1"); 88 | IReadOnlyList relationshipClasses = featureService.OpenRelationshipClasses("0", "1"); 89 | 90 | //These are the relationship clases where the origin layer ID is 1 and destination layer ID is 0 91 | //Note that these will be different from the relationship classes above. 92 | //At 2.x - IReadOnlyList reverseRrelationshipClasses = featureService.OpenRelationshipClass("1", "0"); 93 | IReadOnlyList reverseRrelationshipClasses = featureService.OpenRelationshipClasses("1", "0"); 94 | } 95 | } 96 | } 97 | } -------------------------------------------------------------------------------- /Examples/Geodatabase/Geodatabase/GeodatabaseOpenFile.cs: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright 2018 Esri 4 | 5 | Licensed under the Apache License, Version 2.0 (the "License"); 6 | you may not use this file except in compliance with the License. 7 | You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | 15 | See the License for the specific language governing permissions and 16 | limitations under the License. 17 | 18 | */ 19 | using System; 20 | using System.IO; 21 | using System.Threading.Tasks; 22 | using ArcGIS.Core.Data; 23 | using ArcGIS.Desktop.Framework.Threading.Tasks; 24 | 25 | namespace SDKExamples 26 | { 27 | /// 28 | /// Illustrates how to open a file geodatabase. 29 | /// 30 | /// 31 | /// 32 | /// 33 | /// While it is true classes that are derived from the super class 34 | /// consumes native resources (e.g., or ), 35 | /// you can rest assured that the garbage collector will properly dispose of the unmanaged resources during 36 | /// finalization. However, there are certain workflows that require a deterministic finalization of the 37 | /// . Consider the case of a file geodatabase that needs to be deleted 38 | /// on the fly at a particular moment. Because of the indeterministic nature of garbage collection, we can't 39 | /// count on the garbage collector to dispose of the Geodatabase object, thereby removing the lock(s) at the 40 | /// moment we want. To ensure a deterministic finalization of important native resources such as a 41 | /// or , you should declare 42 | /// and instantiate said objects in a using statement. Alternatively, you can achieve the same result by 43 | /// putting the object inside a try block and then calling Dispose() in a finally block. 44 | /// 45 | /// 46 | /// In general, you should always call Dispose() on the following types of objects: 47 | /// 48 | /// 49 | /// - Those that are derived from (e.g., ). 50 | /// 51 | /// 52 | /// - Those that are derived from (e.g., ). 53 | /// 54 | /// 55 | /// - and . 56 | /// 57 | /// 58 | /// - and . 59 | /// 60 | /// 61 | /// - . 62 | /// 63 | /// 64 | /// - and . 65 | /// 66 | /// 67 | public class GeodatabaseOpenFile 68 | { 69 | /// 70 | /// In order to illustrate that Geodatabase calls have to be made on the MCT 71 | /// 72 | /// 73 | public async Task GeodatabaseOpenFileAsync() 74 | { 75 | await QueuedTask.Run(() => MainMethodCode()); 76 | } 77 | 78 | public void MainMethodCode() 79 | { 80 | // Opens a file geodatabase. This will open the geodatabase if the folder exists and contains a valid geodatabase. 81 | 82 | using (Geodatabase geodatabase = new Geodatabase(new FileGeodatabaseConnectionPath(new Uri(@"C:\Path-To-File-Geodatabase\YourName.gdb")))) 83 | { 84 | // Use the geodatabase. 85 | } 86 | 87 | // Opens a mobile geodatbase. This will open the geodatabase if the folder exists and contains a valid geodatabase. 88 | 89 | MobileGeodatabaseConnectionPath mobileGeodatabaseConnectionPath = new MobileGeodatabaseConnectionPath(new Uri(@"C:\Path-To-Mobile-Geodatabase\YourName.geodatabase")); 90 | using (Geodatabase geodatabase = new Geodatabase(mobileGeodatabaseConnectionPath)) 91 | { 92 | // use the geodatabase 93 | } 94 | 95 | // Each of the following would fail with GeodatabaseNotFoundOrOpenedException. 96 | try 97 | { 98 | Geodatabase fileGeodatabase1 = new Geodatabase(new FileGeodatabaseConnectionPath(new Uri(@"BadPath.gdb"))); 99 | Geodatabase fileGeodatabase2 = new Geodatabase((FileGeodatabaseConnectionPath)null); 100 | 101 | Geodatabase mobileGeodatabase1 = new Geodatabase( new MobileGeodatabaseConnectionPath(new Uri(@"BadPath.geodatabase"))); 102 | Geodatabase mobileGeodatabase2 = new Geodatabase((MobileGeodatabaseConnectionPath)null); 103 | } 104 | catch (ArcGIS.Core.Data.Exceptions.GeodatabaseNotFoundOrOpenedException exception) 105 | { 106 | // Handle Exception. 107 | } 108 | 109 | } 110 | } 111 | } -------------------------------------------------------------------------------- /Examples/Geodatabase/GeodatabaseSDK.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | net8.0-windows7.0 4 | true 5 | win10-x64 6 | false 7 | true 8 | CA1416 9 | 10 | 11 | 12 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Core\ArcGIS.Desktop.Core.dll 13 | False 14 | 15 | 16 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Mapping\ArcGIS.Desktop.Mapping.dll 17 | False 18 | 19 | 20 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Framework.dll 21 | False 22 | 23 | 24 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Core.dll 25 | False 26 | 27 | 28 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Editing\ArcGIS.Desktop.Editing.dll 29 | False 30 | 31 | 32 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Catalog\ArcGIS.Desktop.Catalog.dll 33 | False 34 | 35 | 36 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DesktopExtensions\ArcGIS.Desktop.Extensions.dll 37 | False 38 | 39 | 40 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Shared.Wpf.dll 41 | False 42 | 43 | 44 | C:\Program Files\ArcGIS\Pro\bin\Extensions\ArcGISSearch\ArcGIS.Desktop.Search.dll 45 | False 46 | 47 | 48 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataSourcesRaster\ArcGIS.Desktop.DataSourcesRaster.dll 49 | False 50 | 51 | 52 | C:\Program Files\ArcGIS\Pro\bin\Extensions\GeoProcessing\ArcGIS.Desktop.GeoProcessing.dll 53 | False 54 | 55 | 56 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Layout\ArcGIS.Desktop.Layouts.dll 57 | False 58 | 59 | 60 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Sharing\ArcGIS.Desktop.Sharing.dll 61 | False 62 | 63 | 64 | C:\Program Files\ArcGIS\Pro\bin\Extensions\TaskAssistant\ArcGIS.Desktop.TaskAssistant.dll 65 | False 66 | 67 | 68 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.CoreHost.dll 69 | False 70 | 71 | 72 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataReviewer\ArcGIS.Desktop.DataReviewer.dll 73 | False 74 | 75 | 76 | -------------------------------------------------------------------------------- /Examples/Geodatabase/GeodatabaseSDK.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.2.32802.462 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GeodatabaseSDK", "GeodatabaseSDK.csproj", "{37BAD2A7-E23A-4A42-8589-255B56EFE483}" 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 | {37BAD2A7-E23A-4A42-8589-255B56EFE483}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {37BAD2A7-E23A-4A42-8589-255B56EFE483}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {37BAD2A7-E23A-4A42-8589-255B56EFE483}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {37BAD2A7-E23A-4A42-8589-255B56EFE483}.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 = {A2772C3E-36B1-462A-B9AF-FB1948CBD53D} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /Examples/Geodatabase/RangeDomain/RangeDomainMethods.cs: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright 2018 Esri 4 | 5 | Licensed under the Apache License, Version 2.0 (the "License"); 6 | you may not use this file except in compliance with the License. 7 | You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | 15 | See the License for the specific language governing permissions and 16 | limitations under the License. 17 | 18 | */ 19 | using System; 20 | using System.Threading.Tasks; 21 | using ArcGIS.Core.Data; 22 | using ArcGIS.Desktop.Framework.Threading.Tasks; 23 | 24 | namespace SDKExamples.GeodatabaseSDK 25 | { 26 | /// 27 | /// Illustrates how to use a RangeDomain object. 28 | /// 29 | /// 30 | /// 31 | /// 32 | /// While it is true classes that are derived from the super class 33 | /// consumes native resources (e.g., or ), 34 | /// you can rest assured that the garbage collector will properly dispose of the unmanaged resources during 35 | /// finalization. However, there are certain workflows that require a deterministic finalization of the 36 | /// . Consider the case of a file geodatabase that needs to be deleted 37 | /// on the fly at a particular moment. Because of the indeterministic nature of garbage collection, we can't 38 | /// count on the garbage collector to dispose of the Geodatabase object, thereby removing the lock(s) at the 39 | /// moment we want. To ensure a deterministic finalization of important native resources such as a 40 | /// or , you should declare 41 | /// and instantiate said objects in a using statement. Alternatively, you can achieve the same result by 42 | /// putting the object inside a try block and then calling Dispose() in a finally block. 43 | /// 44 | /// 45 | /// In general, you should always call Dispose() on the following types of objects: 46 | /// 47 | /// 48 | /// - Those that are derived from (e.g., ). 49 | /// 50 | /// 51 | /// - Those that are derived from (e.g., ). 52 | /// 53 | /// 54 | /// - and . 55 | /// 56 | /// 57 | /// - and . 58 | /// 59 | /// 60 | /// - . 61 | /// 62 | /// 63 | /// - and . 64 | /// 65 | /// 66 | public class RangeDomainMethods 67 | { 68 | /// 69 | /// In order to illustrate that Geodatabase calls have to be made on the MCT 70 | /// 71 | /// 72 | public async Task RangeDomainMethodsAsync() 73 | { 74 | await QueuedTask.Run(() => MainMethodCode()); 75 | } 76 | 77 | public void MainMethodCode() 78 | { 79 | // Opening a Non-Versioned SQL Server instance. 80 | 81 | DatabaseConnectionProperties connectionProperties = new DatabaseConnectionProperties(EnterpriseDatabaseType.SQLServer) 82 | { 83 | AuthenticationMode = AuthenticationMode.DBMS, 84 | 85 | // Where testMachine is the machine where the instance is running and testInstance is the name of the SqlServer instance. 86 | Instance = @"testMachine\testInstance", 87 | 88 | // Provided that a database called LocalGovernment has been created on the testInstance and geodatabase has been enabled on the database. 89 | Database = "LocalGovernment", 90 | 91 | // Provided that a login called gdb has been created and corresponding schema has been created with the required permissions. 92 | User = "gdb", 93 | Password = "password", 94 | Version = "dbo.DEFAULT" 95 | }; 96 | 97 | using (Geodatabase geodatabase = new Geodatabase(connectionProperties)) 98 | using (FeatureClassDefinition featureClassDefinition = geodatabase.GetDefinition("LocalGovernment.GDB.ServiceRequestComment")) 99 | { 100 | int rankIndex = featureClassDefinition.FindField("RANK"); 101 | Field field = featureClassDefinition.GetFields()[rankIndex]; 102 | 103 | Domain domain = field.GetDomain(); 104 | 105 | RangeDomain rangeDomain = (RangeDomain)domain; 106 | 107 | // Will be "ServiceRequestRanking". 108 | string name = rangeDomain.GetName(); 109 | 110 | // Will be FieldType.Integer. 111 | FieldType fieldType = rangeDomain.GetFieldType(); 112 | 113 | // Will be "A factor assigned to unassigned service requests indicating importance". 114 | string description = rangeDomain.GetDescription(); 115 | 116 | // Will be 1. 117 | int minValue = Convert.ToInt32(rangeDomain.GetMinValue()); 118 | 119 | // Will be 5. 120 | int maxValue = Convert.ToInt32(rangeDomain.GetMaxValue()); 121 | } 122 | } 123 | } 124 | } -------------------------------------------------------------------------------- /Examples/Geometry/Geometry.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | net8.0-windows7.0 4 | true 5 | win10-x64 6 | false 7 | true 8 | CA1416 9 | 10 | 11 | 12 | 13 | 14 | 15 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Core\ArcGIS.Desktop.Core.dll 16 | False 17 | 18 | 19 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Mapping\ArcGIS.Desktop.Mapping.dll 20 | False 21 | 22 | 23 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Framework.dll 24 | False 25 | 26 | 27 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Core.dll 28 | False 29 | 30 | 31 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Editing\ArcGIS.Desktop.Editing.dll 32 | False 33 | 34 | 35 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Catalog\ArcGIS.Desktop.Catalog.dll 36 | False 37 | 38 | 39 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DesktopExtensions\ArcGIS.Desktop.Extensions.dll 40 | False 41 | 42 | 43 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Shared.Wpf.dll 44 | False 45 | 46 | 47 | C:\Program Files\ArcGIS\Pro\bin\Extensions\ArcGISSearch\ArcGIS.Desktop.Search.dll 48 | False 49 | 50 | 51 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataSourcesRaster\ArcGIS.Desktop.DataSourcesRaster.dll 52 | False 53 | 54 | 55 | C:\Program Files\ArcGIS\Pro\bin\Extensions\GeoProcessing\ArcGIS.Desktop.GeoProcessing.dll 56 | False 57 | 58 | 59 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Layout\ArcGIS.Desktop.Layouts.dll 60 | False 61 | 62 | 63 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Sharing\ArcGIS.Desktop.Sharing.dll 64 | False 65 | 66 | 67 | C:\Program Files\ArcGIS\Pro\bin\Extensions\TaskAssistant\ArcGIS.Desktop.TaskAssistant.dll 68 | False 69 | 70 | 71 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.CoreHost.dll 72 | False 73 | 74 | 75 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataReviewer\ArcGIS.Desktop.DataReviewer.dll 76 | False 77 | 78 | 79 | 80 | -------------------------------------------------------------------------------- /Examples/Geometry/Geometry.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.4.33122.133 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Geometry", "Geometry.csproj", "{4B4383EB-D7D3-47E7-BDB9-4DF70EB7794E}" 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 | {4B4383EB-D7D3-47E7-BDB9-4DF70EB7794E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {4B4383EB-D7D3-47E7-BDB9-4DF70EB7794E}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {4B4383EB-D7D3-47E7-BDB9-4DF70EB7794E}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {4B4383EB-D7D3-47E7-BDB9-4DF70EB7794E}.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 = {5878175F-92A5-469B-96D9-EC1609882B8F} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /Examples/Geoprocessing/GeoProcessing.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | net8.0-windows7.0 4 | true 5 | win10-x64 6 | false 7 | true 8 | CA1416 9 | 10 | 11 | 12 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Core\ArcGIS.Desktop.Core.dll 13 | False 14 | 15 | 16 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Mapping\ArcGIS.Desktop.Mapping.dll 17 | False 18 | 19 | 20 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Framework.dll 21 | False 22 | 23 | 24 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Core.dll 25 | False 26 | 27 | 28 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Editing\ArcGIS.Desktop.Editing.dll 29 | False 30 | 31 | 32 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Catalog\ArcGIS.Desktop.Catalog.dll 33 | False 34 | 35 | 36 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DesktopExtensions\ArcGIS.Desktop.Extensions.dll 37 | False 38 | 39 | 40 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Shared.Wpf.dll 41 | False 42 | 43 | 44 | C:\Program Files\ArcGIS\Pro\bin\Extensions\ArcGISSearch\ArcGIS.Desktop.Search.dll 45 | False 46 | 47 | 48 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataSourcesRaster\ArcGIS.Desktop.DataSourcesRaster.dll 49 | False 50 | 51 | 52 | C:\Program Files\ArcGIS\Pro\bin\Extensions\GeoProcessing\ArcGIS.Desktop.GeoProcessing.dll 53 | False 54 | 55 | 56 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Layout\ArcGIS.Desktop.Layouts.dll 57 | False 58 | 59 | 60 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Sharing\ArcGIS.Desktop.Sharing.dll 61 | False 62 | 63 | 64 | C:\Program Files\ArcGIS\Pro\bin\Extensions\TaskAssistant\ArcGIS.Desktop.TaskAssistant.dll 65 | False 66 | 67 | 68 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.CoreHost.dll 69 | False 70 | 71 | 72 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataReviewer\ArcGIS.Desktop.DataReviewer.dll 73 | False 74 | 75 | 76 | -------------------------------------------------------------------------------- /Examples/Geoprocessing/GeoProcessing.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.1.32319.34 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GeoProcessing", "GeoProcessing.csproj", "{C1EA1EFD-0235-48A6-9344-13572087352A}" 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 | {C1EA1EFD-0235-48A6-9344-13572087352A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {C1EA1EFD-0235-48A6-9344-13572087352A}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {C1EA1EFD-0235-48A6-9344-13572087352A}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {C1EA1EFD-0235-48A6-9344-13572087352A}.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 = {4D5D8259-6560-4EE4-AB49-3A9E47CF8B7D} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /Examples/GraphicsLayers/GraphicsLayers.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | net8.0-windows7.0 4 | true 5 | win10-x64 6 | false 7 | true 8 | CA1416 9 | 10 | 11 | 12 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Core\ArcGIS.Desktop.Core.dll 13 | False 14 | 15 | 16 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Mapping\ArcGIS.Desktop.Mapping.dll 17 | False 18 | 19 | 20 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Framework.dll 21 | False 22 | 23 | 24 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Core.dll 25 | False 26 | 27 | 28 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Editing\ArcGIS.Desktop.Editing.dll 29 | False 30 | 31 | 32 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Catalog\ArcGIS.Desktop.Catalog.dll 33 | False 34 | 35 | 36 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DesktopExtensions\ArcGIS.Desktop.Extensions.dll 37 | False 38 | 39 | 40 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Shared.Wpf.dll 41 | False 42 | 43 | 44 | C:\Program Files\ArcGIS\Pro\bin\Extensions\ArcGISSearch\ArcGIS.Desktop.Search.dll 45 | False 46 | 47 | 48 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataSourcesRaster\ArcGIS.Desktop.DataSourcesRaster.dll 49 | False 50 | 51 | 52 | C:\Program Files\ArcGIS\Pro\bin\Extensions\GeoProcessing\ArcGIS.Desktop.GeoProcessing.dll 53 | False 54 | 55 | 56 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Layout\ArcGIS.Desktop.Layouts.dll 57 | False 58 | 59 | 60 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Sharing\ArcGIS.Desktop.Sharing.dll 61 | False 62 | 63 | 64 | C:\Program Files\ArcGIS\Pro\bin\Extensions\TaskAssistant\ArcGIS.Desktop.TaskAssistant.dll 65 | False 66 | 67 | 68 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.CoreHost.dll 69 | False 70 | 71 | 72 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataReviewer\ArcGIS.Desktop.DataReviewer.dll 73 | False 74 | 75 | 76 | -------------------------------------------------------------------------------- /Examples/GraphicsLayers/GraphicsLayers.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.1.32319.34 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GraphicsLayers", "GraphicsLayers.csproj", "{0D18424A-E64D-4043-953B-222C2F803923}" 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 | {0D18424A-E64D-4043-953B-222C2F803923}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {0D18424A-E64D-4043-953B-222C2F803923}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {0D18424A-E64D-4043-953B-222C2F803923}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {0D18424A-E64D-4043-953B-222C2F803923}.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 = {65D0E873-BCBA-42EC-B441-3365F1A41A1B} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /Examples/KnowledgeGraph/KnowledgeGraph.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | net8.0 5 | enable 6 | enable 7 | x64 8 | 9 | 10 | 11 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Core\ArcGIS.Desktop.Core.dll 12 | False 13 | 14 | 15 | C:\Program Files\ArcGIS\Pro\bin\\Extensions\KnowledgeGraph\ArcGIS.Desktop.KnowledgeGraph.dll 16 | False 17 | 18 | 19 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Mapping\ArcGIS.Desktop.Mapping.dll 20 | False 21 | 22 | 23 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Framework.dll 24 | False 25 | 26 | 27 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Core.dll 28 | False 29 | 30 | 31 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Editing\ArcGIS.Desktop.Editing.dll 32 | False 33 | 34 | 35 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Catalog\ArcGIS.Desktop.Catalog.dll 36 | False 37 | 38 | 39 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DesktopExtensions\ArcGIS.Desktop.Extensions.dll 40 | False 41 | 42 | 43 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Shared.Wpf.dll 44 | False 45 | 46 | 47 | C:\Program Files\ArcGIS\Pro\bin\Extensions\ArcGISSearch\ArcGIS.Desktop.Search.dll 48 | False 49 | 50 | 51 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataSourcesRaster\ArcGIS.Desktop.DataSourcesRaster.dll 52 | False 53 | 54 | 55 | C:\Program Files\ArcGIS\Pro\bin\Extensions\GeoProcessing\ArcGIS.Desktop.GeoProcessing.dll 56 | False 57 | 58 | 59 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Layout\ArcGIS.Desktop.Layouts.dll 60 | False 61 | 62 | 63 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Sharing\ArcGIS.Desktop.Sharing.dll 64 | False 65 | 66 | 67 | C:\Program Files\ArcGIS\Pro\bin\Extensions\TaskAssistant\ArcGIS.Desktop.TaskAssistant.dll 68 | False 69 | 70 | 71 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.CoreHost.dll 72 | False 73 | 74 | 75 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataReviewer\ArcGIS.Desktop.DataReviewer.dll 76 | False 77 | 78 | 79 | 80 | -------------------------------------------------------------------------------- /Examples/Layouts/GraphicElementClass.cs: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright 2018 Esri 4 | 5 | Licensed under the Apache License, Version 2.0 (the "License"); 6 | you may not use this file except in compliance with the License. 7 | You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | 15 | See the License for the specific language governing permissions and 16 | limitations under the License. 17 | 18 | */ 19 | using System; 20 | using System.Collections.Generic; 21 | using System.Linq; 22 | using System.Text; 23 | using System.Threading.Tasks; 24 | using ArcGIS.Desktop.Framework; 25 | using ArcGIS.Desktop.Framework.Contracts; 26 | 27 | namespace Layout_HelpExamples 28 | { 29 | // cref: CIMGraphic;ArcGIS.Desktop.Layouts.GraphicElement 30 | // cref: CIMGraphic;ArcGIS.Desktop.Layouts.LayoutProjectItem 31 | // cref: CIMGraphic;ArcGIS.Desktop.Layouts.LayoutProjectItem.GetLayout 32 | // cref: ArcGIS.Desktop.Layouts.GraphicElement.GetGraphic 33 | // cref: ARCGIS.DESKTOP.LAYOUTS.GRAPHICELEMENT.SETGRAPHIC 34 | // cref: ArcGIS.Desktop.Layouts.Layout.FindElement 35 | // cref: ARCGIS.CORE.CIM.CIMGRAPHIC.TRANSPARENCY 36 | #region CIMGraphic 37 | //This example references a graphic element on a layout and sets its Transparency property (which is not available in the managed API) 38 | //by accessing the element's CIMGraphic. 39 | 40 | //Added references 41 | using ArcGIS.Core.CIM; //CIM 42 | using ArcGIS.Desktop.Core; //Project 43 | using ArcGIS.Desktop.Layouts; //Layout class 44 | using ArcGIS.Desktop.Framework.Threading.Tasks; //QueuedTask 45 | 46 | public class GraphicElementExample1 47 | { 48 | public static Task UpdateElementTransparencyAsync(string LayoutName, string ElementName, int TransValue) 49 | { 50 | //Reference a layoutitem in a project by name 51 | LayoutProjectItem layoutItem = Project.Current.GetItems().FirstOrDefault(item => item.Name.Equals(LayoutName)); 52 | if (layoutItem == null) 53 | return Task.FromResult(false); 54 | 55 | return QueuedTask.Run(() => 56 | { 57 | //Reference and load the layout associated with the layout item 58 | Layout lyt = layoutItem.GetLayout(); 59 | 60 | //Reference a element by name 61 | GraphicElement graElm = lyt.FindElement(ElementName) as GraphicElement; 62 | if (graElm == null) 63 | return false; 64 | 65 | //Modify the Transparency property that exists only in the CIMGraphic class. 66 | CIMGraphic CIMGra = graElm.GetGraphic() as CIMGraphic; 67 | CIMGra.Transparency = TransValue; //e.g., TransValue = 50 68 | graElm.SetGraphic(CIMGra); 69 | 70 | return true; 71 | }); 72 | } 73 | } 74 | #endregion CIMGraphic 75 | } 76 | 77 | 78 | namespace Layout_HelpExamples 79 | { 80 | // cref: ARCGIS.DESKTOP.LAYOUTS.GRAPHICELEMENT 81 | // cref: ARCGIS.DESKTOP.LAYOUTS.GRAPHICELEMENT.CLONE 82 | // cref: ArcGIS.Desktop.Layouts.Element.SETX 83 | // cref: ArcGIS.Desktop.Layouts.Element.SETY 84 | #region CloneGraphic 85 | //This example finds a layout element by name and clones it a specified number of times and applies an accumlative offset for each 86 | //cloned element. 87 | 88 | //Added references 89 | using ArcGIS.Core.CIM; //CIM 90 | using ArcGIS.Desktop.Core; //Project 91 | using ArcGIS.Desktop.Layouts; //Layout class 92 | using ArcGIS.Desktop.Framework.Threading.Tasks; //QueuedTask 93 | 94 | public class GraphicElementExample2 95 | { 96 | public static Task CloneElementAsync(string LayoutName, string ElementName, double offset, int numCopies) 97 | { 98 | //Reference a layoutitem in a project by name 99 | LayoutProjectItem layoutItem = Project.Current.GetItems().FirstOrDefault(item => item.Name.Equals(LayoutName)); 100 | if (layoutItem == null) 101 | return Task.FromResult(false); 102 | 103 | return QueuedTask.Run(() => 104 | { 105 | //Reference and load the layout associated with the layout item 106 | Layout lyt = layoutItem.GetLayout(); 107 | 108 | //Reference a element by name 109 | GraphicElement graElm = lyt.FindElement(ElementName) as GraphicElement; 110 | if (graElm == null) 111 | return false; 112 | 113 | //Loop through the number of copies, clone, and set the offsets for each new element 114 | double orig_offset = offset; 115 | while (numCopies != 0) 116 | { 117 | GraphicElement cloneElm = graElm.Clone("Clone"); 118 | cloneElm.SetX(cloneElm.GetX() + offset); 119 | cloneElm.SetY(cloneElm.GetY() - offset); 120 | offset = offset + orig_offset; 121 | numCopies = numCopies - 1; 122 | } 123 | 124 | return true; 125 | }); 126 | } 127 | } 128 | #endregion CloneGraphic 129 | } 130 | 131 | 132 | namespace Layout_HelpExamples 133 | { 134 | internal class GraphicElementClass : Button 135 | { 136 | async protected override void OnClick() 137 | { 138 | //Set Transparency 139 | bool b1 = await GraphicElementExample1.UpdateElementTransparencyAsync("Layout Name", "Rectangle", 50); 140 | if (b1) 141 | System.Windows.MessageBox.Show("Successfully Changed Transparency "); 142 | else 143 | System.Windows.MessageBox.Show("Could Not Change Transparency"); 144 | 145 | 146 | //Clone Element 147 | bool b2 = await GraphicElementExample2.CloneElementAsync("Layout Name", "Rectangle", 0.25, 5); 148 | if (b2) 149 | System.Windows.MessageBox.Show("Successfully Cloned Element "); 150 | else 151 | System.Windows.MessageBox.Show("Could Not Clone Element"); 152 | 153 | } 154 | } 155 | } 156 | -------------------------------------------------------------------------------- /Examples/Layouts/LayoutFactory.cs: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright 2018 Esri 4 | 5 | Licensed under the Apache License, Version 2.0 (the "License"); 6 | you may not use this file except in compliance with the License. 7 | You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | 15 | See the License for the specific language governing permissions and 16 | limitations under the License. 17 | 18 | */ 19 | using System; 20 | using System.Collections.Generic; 21 | using System.Linq; 22 | using System.Text; 23 | using System.Threading.Tasks; 24 | using ArcGIS.Desktop.Framework; 25 | using ArcGIS.Desktop.Framework.Contracts; 26 | using ArcGIS.Desktop.Layouts; 27 | using ArcGIS.Core.Geometry; 28 | 29 | namespace Layout_HelpExamples 30 | { 31 | // cref: ArcGIS.Desktop.Layouts.ILayoutFactory.CreateLayout(System.Double,System.Double,ArcGIS.Core.Geometry.LinearUnit,System.Boolean,System.Double) 32 | // cref: ArcGIS.Desktop.Layouts.LayoutFactory.CreateLayout(System.Double,System.Double,ArcGIS.Core.Geometry.LinearUnit,System.Boolean,System.Double) 33 | // cref: ArcGIS.Desktop.Layouts.Layout.SetName 34 | // cref: ArcGIS.Desktop.Core.LayoutFrameworkExtender.CreateLayoutPaneAsync 35 | #region CreateLayout_WITH_WD_AND_HT 36 | //This example creates a new layout using a minimum set of parameters. 37 | 38 | //Added references 39 | using ArcGIS.Desktop.Layouts; 40 | using ArcGIS.Desktop.Framework.Threading.Tasks; 41 | using ArcGIS.Desktop.Core; 42 | 43 | public class CreateLayoutEx1 44 | { 45 | async public static Task CreateBasicLayout(double width, double height, LinearUnit units, string LayoutName) 46 | { 47 | Layout layout = null; 48 | await QueuedTask.Run(() => 49 | { 50 | layout = LayoutFactory.Instance.CreateLayout(width, height, units); 51 | layout.SetName(LayoutName); 52 | }); 53 | 54 | //Open the layout in a pane on the UI! 55 | await ProApp.Panes.CreateLayoutPaneAsync(layout); 56 | 57 | return layout; 58 | } 59 | } 60 | #endregion 61 | } 62 | 63 | 64 | namespace Layout_HelpExamples 65 | { 66 | // cref: ArcGIS.Desktop.Layouts.ILayoutFactory.CreateLayout(ArcGIS.Core.CIM.CIMPage) 67 | // cref: ArcGIS.Desktop.Layouts.LayoutFactory.CreateLayout(ArcGIS.Core.CIM.CIMPage) 68 | // cref: ArcGIS.Core.CIM.CIMPAGE 69 | // cref: ArcGIS.Core.CIM.CIMPAGE.ShowGuides 70 | // cref: ArcGIS.Core.CIM.CIMPAGE.ShowRulers 71 | // cref: ArcGIS.Core.CIM.CIMPAGE.Guides 72 | // cref: ArcGIS.Core.CIM.CIMGUIDE 73 | // cref: ArcGIS.Core.CIM.CIMGUIDE.Position 74 | // cref: ArcGIS.Core.CIM.CIMGUIDE.Orientation 75 | // cref: ArcGIS.Core.CIM.Orientation 76 | // cref: ArcGIS.Desktop.Core.LayoutFrameworkExtender.CreateLayoutPaneAsync 77 | #region CreateLayout_With_CIMPAGE 78 | //This example creates a new layout using a CIM page definion with rulers and guides included. 79 | 80 | //Added references 81 | using ArcGIS.Desktop.Layouts; 82 | using ArcGIS.Desktop.Framework.Threading.Tasks; 83 | using ArcGIS.Desktop.Core; 84 | using ArcGIS.Core.CIM; 85 | 86 | public class CreateLayoutEx2 87 | { 88 | async public static Task CreateCIMLayout(double width, double height, LinearUnit units, string LayoutName) 89 | { 90 | Layout CIMlayout = null; 91 | await QueuedTask.Run(() => 92 | { 93 | //Set up a page 94 | CIMPage newPage = new CIMPage(); 95 | 96 | //required 97 | newPage.Width = width; 98 | newPage.Height = height; 99 | newPage.Units = units; 100 | 101 | //optional rulers 102 | newPage.ShowRulers = true; 103 | newPage.SmallestRulerDivision = 5; 104 | 105 | //optional guides 106 | newPage.ShowGuides = true; 107 | CIMGuide guide1 = new CIMGuide(); 108 | guide1.Position = 25; 109 | guide1.Orientation = Orientation.Vertical; 110 | CIMGuide guide2 = new CIMGuide(); 111 | guide2.Position = 185; 112 | guide2.Orientation = Orientation.Vertical; 113 | CIMGuide guide3 = new CIMGuide(); 114 | guide3.Position = 25; 115 | guide3.Orientation = Orientation.Horizontal; 116 | CIMGuide guide4 = new CIMGuide(); 117 | guide4.Position = 272; 118 | guide4.Orientation = Orientation.Horizontal; 119 | 120 | List guideList = new List(); 121 | guideList.Add(guide1); 122 | guideList.Add(guide2); 123 | guideList.Add(guide3); 124 | guideList.Add(guide4); 125 | newPage.Guides = guideList.ToArray(); 126 | 127 | Layout layout = LayoutFactory.Instance.CreateLayout(newPage); 128 | 129 | layout.SetName(LayoutName); 130 | }); 131 | 132 | //Open the layout in a pane on the UI! 133 | await ProApp.Panes.CreateLayoutPaneAsync(CIMlayout); 134 | return CIMlayout; 135 | } 136 | } 137 | #endregion 138 | } 139 | 140 | namespace Layout_HelpExamples 141 | { 142 | internal class LayoutFactoryClass : Button 143 | { 144 | async protected override void OnClick() 145 | { 146 | Layout lyt1 = await CreateLayoutEx1.CreateBasicLayout(210, 297, LinearUnit.Millimeters, "A4 Layout"); 147 | Layout lyt2 = await CreateLayoutEx1.CreateBasicLayout(17, 11, LinearUnit.Inches, "17x11 Layout"); 148 | } 149 | } 150 | } 151 | -------------------------------------------------------------------------------- /Examples/Layouts/LayoutProjectItemClass.cs: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright 2018 Esri 4 | 5 | Licensed under the Apache License, Version 2.0 (the "License"); 6 | you may not use this file except in compliance with the License. 7 | You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | 15 | See the License for the specific language governing permissions and 16 | limitations under the License. 17 | 18 | */ 19 | using System; 20 | using System.Collections.Generic; 21 | using System.Linq; 22 | using System.Text; 23 | using System.Threading.Tasks; 24 | using ArcGIS.Desktop.Framework; 25 | using ArcGIS.Desktop.Framework.Contracts; 26 | 27 | //namespace Layout_HelpExamples 28 | //{ 29 | // #region FindLayout 30 | // //This example references a layout by name using GetLayout on the LayoutProjectItem. 31 | 32 | // //Added references 33 | // using ArcGIS.Desktop.Core; 34 | // using ArcGIS.Desktop.Layouts; 35 | // using ArcGIS.Desktop.Framework.Threading.Tasks; 36 | 37 | // public class FindLayoutExample 38 | // { 39 | // public static Task FindLayoutAsync(string LayoutName) 40 | // { 41 | // //Reference a layoutitem in a project by name 42 | // LayoutProjectItem layoutItem = Project.Current.GetItems().FirstOrDefault(item => item.Name.Equals(LayoutName)); 43 | 44 | // //Check for layoutItem 45 | // if (layoutItem == null) 46 | // return Task.FromResult(null); 47 | 48 | // //Reference and load the layout associated with the layout item 49 | // return QueuedTask.Run(() => layoutItem.GetLayout()); 50 | // } 51 | // } 52 | // #endregion FindLayout 53 | //} 54 | 55 | namespace Layout_HelpExamples 56 | { 57 | // cref: ArcGIS.Desktop.Layouts.LayoutProjectItem 58 | // cref: ArcGIS.Desktop.Core.Project.GetItems 59 | // cref: ArcGIS.Desktop.Core.Project.RemoveItem 60 | #region Delete_Layout 61 | //This example deletes a layout in a project after finding it by name. 62 | 63 | //Added references 64 | using ArcGIS.Desktop.Core; 65 | using ArcGIS.Desktop.Layouts; 66 | 67 | public class DeleteLayoutExample 68 | { 69 | public static Task DeleteLayoutAsync(string LayoutName) 70 | { 71 | //Reference a layoutitem in a project by name 72 | LayoutProjectItem layoutItem = Project.Current.GetItems().FirstOrDefault(item => item.Name.Equals(LayoutName)); 73 | 74 | //Check for layoutItem 75 | if (layoutItem == null) 76 | return Task.FromResult(false); 77 | 78 | //Delete the layout from the project 79 | return Task.FromResult(Project.Current.RemoveItem(layoutItem)); 80 | } 81 | } 82 | #endregion 83 | } 84 | 85 | namespace Layout_HelpExamples 86 | { 87 | using ArcGIS.Desktop.Layouts; //Layout class 88 | internal class LayoutProjectItemClass : Button 89 | { 90 | async protected override void OnClick() 91 | { 92 | ////ReferenceLayout 93 | //Layout lyt1 = await FindLayoutExample.FindLayoutAsync("Layout Name"); 94 | //if (lyt1 == null) 95 | // System.Windows.MessageBox.Show("Layout Not Found"); 96 | //else 97 | // System.Windows.MessageBox.Show("Found: " + lyt1.Name); 98 | 99 | //DeleteLayout 100 | bool b1 = await DeleteLayoutExample.DeleteLayoutAsync("Layout"); 101 | if (b1) 102 | System.Windows.MessageBox.Show("Successfully Deleted Layout "); 103 | else 104 | System.Windows.MessageBox.Show("Could Not Delete Layout"); 105 | } 106 | } 107 | } 108 | -------------------------------------------------------------------------------- /Examples/Layouts/Layouts.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | net8.0-windows7.0 4 | true 5 | win10-x64 6 | false 7 | true 8 | CA1416 9 | 10 | 11 | 12 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Core\ArcGIS.Desktop.Core.dll 13 | False 14 | 15 | 16 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Mapping\ArcGIS.Desktop.Mapping.dll 17 | False 18 | 19 | 20 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Framework.dll 21 | False 22 | 23 | 24 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Core.dll 25 | False 26 | 27 | 28 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Editing\ArcGIS.Desktop.Editing.dll 29 | False 30 | 31 | 32 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Catalog\ArcGIS.Desktop.Catalog.dll 33 | False 34 | 35 | 36 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DesktopExtensions\ArcGIS.Desktop.Extensions.dll 37 | False 38 | 39 | 40 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Shared.Wpf.dll 41 | False 42 | 43 | 44 | C:\Program Files\ArcGIS\Pro\bin\Extensions\ArcGISSearch\ArcGIS.Desktop.Search.dll 45 | False 46 | 47 | 48 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataSourcesRaster\ArcGIS.Desktop.DataSourcesRaster.dll 49 | False 50 | 51 | 52 | C:\Program Files\ArcGIS\Pro\bin\Extensions\GeoProcessing\ArcGIS.Desktop.GeoProcessing.dll 53 | False 54 | 55 | 56 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Layout\ArcGIS.Desktop.Layouts.dll 57 | False 58 | 59 | 60 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Sharing\ArcGIS.Desktop.Sharing.dll 61 | False 62 | 63 | 64 | C:\Program Files\ArcGIS\Pro\bin\Extensions\TaskAssistant\ArcGIS.Desktop.TaskAssistant.dll 65 | False 66 | 67 | 68 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.CoreHost.dll 69 | False 70 | 71 | 72 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataReviewer\ArcGIS.Desktop.DataReviewer.dll 73 | False 74 | 75 | 76 | -------------------------------------------------------------------------------- /Examples/Layouts/Layouts.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.1.32319.34 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Layouts", "Layouts.csproj", "{BBC7EAC6-C1D2-4F52-BA30-EAB524EDE09F}" 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 | {BBC7EAC6-C1D2-4F52-BA30-EAB524EDE09F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {BBC7EAC6-C1D2-4F52-BA30-EAB524EDE09F}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {BBC7EAC6-C1D2-4F52-BA30-EAB524EDE09F}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {BBC7EAC6-C1D2-4F52-BA30-EAB524EDE09F}.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 = {2C6D4991-C15F-471E-8F2E-9C8343CB225D} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /Examples/Layouts/MapFrameClass.cs: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright 2018 Esri 4 | 5 | Licensed under the Apache License, Version 2.0 (the "License"); 6 | you may not use this file except in compliance with the License. 7 | You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | 15 | See the License for the specific language governing permissions and 16 | limitations under the License. 17 | 18 | */ 19 | using System; 20 | using System.Collections.Generic; 21 | using System.Linq; 22 | using System.Text; 23 | using System.Threading.Tasks; 24 | using ArcGIS.Desktop.Framework; 25 | using ArcGIS.Desktop.Framework.Contracts; 26 | 27 | //Added references 28 | using ArcGIS.Desktop.Framework.Threading.Tasks; 29 | using ArcGIS.Desktop.Layouts; 30 | using ArcGIS.Desktop.Mapping; 31 | using ArcGIS.Core.Geometry; 32 | 33 | namespace Layout_HelpExamples 34 | { 35 | public class MapFrameClassSamples 36 | { 37 | async public static void MethodSnippets() 38 | { 39 | Layout layout = LayoutView.Active.Layout; 40 | 41 | // cref: ArcGIS.Desktop.Layouts.MapFrame 42 | // cref: ArcGIS.Desktop.Layouts.MapFrame.SetCamera(ArcGIS.Desktop.Mapping.Bookmark) 43 | // cref: ArcGIS.Desktop.Layouts.MapFrame.Map 44 | // cref: ArcGIS.Desktop.Mapping.Map.GetBookmarks 45 | #region MapFrame_SetCamera_Bookmark 46 | //Set the extent of a map frame to a bookmark. 47 | 48 | //Perform on the worker thread 49 | await QueuedTask.Run(() => 50 | { 51 | //Reference MapFrame 52 | MapFrame mf_bk = layout.FindElement("Map Frame") as MapFrame; 53 | 54 | //Reference a bookmark that belongs to a map associated with the map frame 55 | Map m = mf_bk.Map; 56 | Bookmark bk = m.GetBookmarks().FirstOrDefault(item => item.Name.Equals("Lakes")); 57 | 58 | //Set the map frame extent using the bookmark 59 | mf_bk.SetCamera(bk); 60 | }); 61 | #endregion MapFrame_SetCamera_Bookmark 62 | 63 | 64 | // cref: ArcGIS.Desktop.Layouts.MapFrame.SetCamera(ArcGIS.Core.Geometry.Envelope) 65 | // cref: ArcGIS.Desktop.Layouts.MapFrame 66 | // cref: ArcGIS.Desktop.Layouts.MapFrame.Map 67 | // cref: ArcGIS.Desktop.Mapping.Map.FindLayers 68 | // cref: ARCGIS.DESKTOP.MAPPING.LAYER.QUERYEXTENT 69 | #region MapFrame_SetCamera_Envelope 70 | //Set the extent of a map frame to the envelope of a feature. 71 | 72 | //Perform on the worker thread 73 | await QueuedTask.Run(() => 74 | { 75 | //Reference MapFrame 76 | MapFrame mf_env = layout.FindElement("Map Frame") as MapFrame; 77 | 78 | //Get map and a layer of interest 79 | Map m = mf_env.Map; 80 | //Get the specific layer you want from the map and its extent 81 | FeatureLayer lyr = m.FindLayers("GreatLakes").First() as FeatureLayer; 82 | Envelope lyrEnv = lyr.QueryExtent(); 83 | 84 | //Set the map frame extent to the feature layer's extent / envelope 85 | mf_env.SetCamera(lyrEnv); //Note - you could have also used the lyr as an overload option 86 | }); 87 | #endregion MapFrame_SetCamera_Envelope 88 | 89 | MapFrame mf = null; 90 | Map map = null; 91 | 92 | // cref: ArcGIS.Desktop.Layouts.MapFrame.SetMap 93 | #region MapFrame_SetMap 94 | //Set the map that is associated with a map frame. 95 | 96 | //Perform on worker thread 97 | await QueuedTask.Run(() => 98 | { 99 | mf.SetMap(map); 100 | }); 101 | 102 | #endregion 103 | 104 | #region MapFrame_SetName 105 | //See ProSnippets "Zoom map frame to extent of a single layer" 106 | #endregion MapFrame_SetName 107 | 108 | } 109 | } 110 | } 111 | 112 | 113 | -------------------------------------------------------------------------------- /Examples/Layouts/PictureElementClass.cs: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright 2018 Esri 4 | 5 | Licensed under the Apache License, Version 2.0 (the "License"); 6 | you may not use this file except in compliance with the License. 7 | You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | 15 | See the License for the specific language governing permissions and 16 | limitations under the License. 17 | 18 | */ 19 | using System; 20 | using System.Collections.Generic; 21 | using System.Linq; 22 | using System.Text; 23 | using System.Threading.Tasks; 24 | using ArcGIS.Desktop.Framework; 25 | using ArcGIS.Desktop.Framework.Contracts; 26 | 27 | namespace Layout_HelpExamples 28 | { 29 | // cref: ArcGIS.Desktop.Layouts.PictureElement 30 | // cref: ArcGIS.Desktop.Layouts.PictureElement.SetSourcePath 31 | #region PictureElementExample 32 | ///This example references a PictureElement on a layout and changes the picture by setting a path to a file on disk using the 33 | 34 | //Added references 35 | using ArcGIS.Desktop.Core; 36 | using ArcGIS.Desktop.Layouts; 37 | using ArcGIS.Desktop.Framework.Threading.Tasks; 38 | 39 | public class PictureElementExample 40 | { 41 | public static Task UpdatePictureElementAsync(string LayoutName, string PictureName, string PicturePath) 42 | { 43 | //Reference a layoutitem in a project by name 44 | LayoutProjectItem layoutItem = Project.Current.GetItems().FirstOrDefault(item => item.Name.Equals(LayoutName)); 45 | if (layoutItem == null) 46 | return Task.FromResult(false); 47 | 48 | return QueuedTask.Run(() => 49 | { 50 | //Reference and load the layout associated with the layout item 51 | Layout lyt = layoutItem.GetLayout(); 52 | 53 | //Reference a picture element by name 54 | PictureElement picElm = lyt.FindElement(PictureName) as PictureElement; 55 | if (picElm == null) 56 | return false; 57 | 58 | //Change the path to a new source 59 | picElm.SetSourcePath(PicturePath); 60 | 61 | return true; 62 | }); 63 | } 64 | } 65 | #endregion PictureElementExample 66 | 67 | internal class PictureElementClass : Button 68 | { 69 | async protected override void OnClick() 70 | { 71 | string some_new_path; 72 | some_new_path = @"D:\Active\Layout\SDK\2.0\Layout_HelpExamples\WhitePass.jpg"; 73 | 74 | bool x = await PictureElementExample.UpdatePictureElementAsync("Layout Name", "Picture", some_new_path); 75 | if (x == false) 76 | System.Windows.MessageBox.Show("Object Not found"); 77 | } 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /Examples/Layouts/ProSnippets.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/Examples/Layouts/ProSnippets.cs -------------------------------------------------------------------------------- /Examples/Layouts/TextElementClass.cs: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright 2018 Esri 4 | 5 | Licensed under the Apache License, Version 2.0 (the "License"); 6 | you may not use this file except in compliance with the License. 7 | You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | 15 | See the License for the specific language governing permissions and 16 | limitations under the License. 17 | 18 | */ 19 | using System; 20 | using System.Collections.Generic; 21 | using System.Linq; 22 | using System.Text; 23 | using System.Threading.Tasks; 24 | using ArcGIS.Desktop.Framework; 25 | using ArcGIS.Desktop.Framework.Contracts; 26 | 27 | //Added references 28 | using ArcGIS.Desktop.Core; //Project 29 | using ArcGIS.Desktop.Layouts; //Layout class 30 | using ArcGIS.Desktop.Framework.Threading.Tasks; //QueuedTask 31 | 32 | namespace Layout_HelpExamples 33 | { 34 | 35 | public class TextElementClassExamples 36 | { 37 | 38 | async public static void TextPropertiesExample() 39 | { 40 | // cref: ArcGIS.Desktop.Layouts.TextElement 41 | // cref: ArcGIS.Desktop.Layouts.TextElement.SetTextProperties 42 | // cref: ArcGIS.Desktop.Layouts.TextElement.TextProperties 43 | // cref: ArcGIS.Desktop.Layouts.TextProperties 44 | // cref: ArcGIS.Desktop.Layouts.TextProperties.Font 45 | // cref: ArcGIS.Desktop.Layouts.TextProperties.FontSize 46 | // cref: ArcGIS.Desktop.Layouts.TextProperties.Text 47 | #region Modify existing text element properties 48 | //Modify the text properties for an existing text element. 49 | 50 | //Reference a layoutitem in a project by name 51 | LayoutProjectItem layoutItem = Project.Current.GetItems().FirstOrDefault(item => item.Name.Equals("Layout")); 52 | 53 | //Perform on the worker thread 54 | await QueuedTask.Run(() => 55 | { 56 | //Reference and load the layout associated with the layout item 57 | Layout lyt = layoutItem.GetLayout(); 58 | 59 | //Reference a text element by name 60 | TextElement txtElm = lyt.FindElement("Title") as TextElement; 61 | 62 | //Change placement 63 | txtElm.SetX(4.25); 64 | txtElm.SetY(8); 65 | 66 | //Change TextProperties 67 | TextProperties txt_prop = txtElm.TextProperties; 68 | txt_prop.FontSize = 48; 69 | txt_prop.Font = "Times New Roman"; 70 | txt_prop.Text = "Some new text"; 71 | txtElm.SetTextProperties(txt_prop); 72 | }); 73 | #endregion 74 | 75 | } 76 | async public static void TextPropertiesExample2() //TODO fis duplicated item above because of inconsistent region name use in TextElement.cs file in layout solution. 77 | { 78 | // cref: ArcGIS.Desktop.Layouts.TextElement 79 | // cref: ArcGIS.Desktop.Layouts.TextElement.SetTextProperties 80 | // cref: ArcGIS.Desktop.Layouts.TextElement.TextProperties 81 | // cref: ArcGIS.Desktop.Layouts.TextProperties 82 | // cref: ArcGIS.Desktop.Layouts.TextProperties.Font 83 | // cref: ArcGIS.Desktop.Layouts.TextProperties.FontSize 84 | // cref: ArcGIS.Desktop.Layouts.TextProperties.Text 85 | #region Modify existing text properties 86 | //Modify the text properties for an existing text element. 87 | 88 | //Reference a layoutitem in a project by name 89 | LayoutProjectItem layoutItem = Project.Current.GetItems().FirstOrDefault(item => item.Name.Equals("Layout")); 90 | 91 | //Perform on the worker thread 92 | await QueuedTask.Run(() => 93 | { 94 | //Reference and load the layout associated with the layout item 95 | Layout lyt = layoutItem.GetLayout(); 96 | 97 | //Reference a text element by name 98 | TextElement txtElm = lyt.FindElement("Title") as TextElement; 99 | 100 | //Change placement 101 | txtElm.SetX(4.25); 102 | txtElm.SetY(8); 103 | 104 | //Change TextProperties 105 | TextProperties txt_prop = txtElm.TextProperties; 106 | txt_prop.FontSize = 48; 107 | txt_prop.Font = "Times New Roman"; 108 | txt_prop.Text = "Some new text"; 109 | txtElm.SetTextProperties(txt_prop); 110 | }); 111 | #endregion 112 | 113 | } 114 | 115 | } 116 | 117 | } 118 | -------------------------------------------------------------------------------- /Examples/MapAuthoring/MapAuthoring.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | net8.0-windows7.0 4 | true 5 | win10-x64 6 | false 7 | true 8 | CA1416 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Core\ArcGIS.Desktop.Core.dll 18 | 19 | 20 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Mapping\ArcGIS.Desktop.Mapping.dll 21 | False 22 | 23 | 24 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Framework.dll 25 | False 26 | 27 | 28 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Core.dll 29 | False 30 | 31 | 32 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Editing\ArcGIS.Desktop.Editing.dll 33 | False 34 | 35 | 36 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Catalog\ArcGIS.Desktop.Catalog.dll 37 | False 38 | 39 | 40 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DesktopExtensions\ArcGIS.Desktop.Extensions.dll 41 | False 42 | 43 | 44 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Shared.Wpf.dll 45 | False 46 | 47 | 48 | C:\Program Files\ArcGIS\Pro\bin\Extensions\ArcGISSearch\ArcGIS.Desktop.Search.dll 49 | False 50 | 51 | 52 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataSourcesRaster\ArcGIS.Desktop.DataSourcesRaster.dll 53 | False 54 | 55 | 56 | C:\Program Files\ArcGIS\Pro\bin\Extensions\GeoProcessing\ArcGIS.Desktop.GeoProcessing.dll 57 | False 58 | 59 | 60 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Layout\ArcGIS.Desktop.Layouts.dll 61 | False 62 | 63 | 64 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Sharing\ArcGIS.Desktop.Sharing.dll 65 | False 66 | 67 | 68 | C:\Program Files\ArcGIS\Pro\bin\Extensions\TaskAssistant\ArcGIS.Desktop.TaskAssistant.dll 69 | False 70 | 71 | 72 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.CoreHost.dll 73 | False 74 | 75 | 76 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataReviewer\ArcGIS.Desktop.DataReviewer.dll 77 | False 78 | 79 | 80 | 81 | 82 | -------------------------------------------------------------------------------- /Examples/MapAuthoring/MapAuthoring.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.3.32819.101 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MapAuthoring", "MapAuthoring.csproj", "{780F66BC-849F-4980-B5DF-923C1808B86B}" 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 | {780F66BC-849F-4980-B5DF-923C1808B86B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {780F66BC-849F-4980-B5DF-923C1808B86B}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {780F66BC-849F-4980-B5DF-923C1808B86B}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {780F66BC-849F-4980-B5DF-923C1808B86B}.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 = {29034FB5-D96E-41BC-9A97-388AB2BFD702} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /Examples/MapExploration/MapExploration.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | net8.0-windows7.0 4 | true 5 | win10-x64 6 | false 7 | true 8 | CA1416 9 | 10 | 11 | 12 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Core\ArcGIS.Desktop.Core.dll 13 | 14 | 15 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Mapping\ArcGIS.Desktop.Mapping.dll 16 | False 17 | 18 | 19 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Framework.dll 20 | False 21 | 22 | 23 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Core.dll 24 | False 25 | 26 | 27 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Editing\ArcGIS.Desktop.Editing.dll 28 | False 29 | 30 | 31 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Catalog\ArcGIS.Desktop.Catalog.dll 32 | False 33 | 34 | 35 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DesktopExtensions\ArcGIS.Desktop.Extensions.dll 36 | False 37 | 38 | 39 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Shared.Wpf.dll 40 | False 41 | 42 | 43 | C:\Program Files\ArcGIS\Pro\bin\Extensions\ArcGISSearch\ArcGIS.Desktop.Search.dll 44 | False 45 | 46 | 47 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataSourcesRaster\ArcGIS.Desktop.DataSourcesRaster.dll 48 | False 49 | 50 | 51 | C:\Program Files\ArcGIS\Pro\bin\Extensions\GeoProcessing\ArcGIS.Desktop.GeoProcessing.dll 52 | False 53 | 54 | 55 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Layout\ArcGIS.Desktop.Layouts.dll 56 | False 57 | 58 | 59 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Sharing\ArcGIS.Desktop.Sharing.dll 60 | False 61 | 62 | 63 | C:\Program Files\ArcGIS\Pro\bin\Extensions\TaskAssistant\ArcGIS.Desktop.TaskAssistant.dll 64 | False 65 | 66 | 67 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.CoreHost.dll 68 | False 69 | 70 | 71 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataReviewer\ArcGIS.Desktop.DataReviewer.dll 72 | False 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /Examples/MapExploration/MapExploration.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.3.32819.101 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MapExploration", "MapExploration.csproj", "{27F3B647-1CB6-4AEE-A94A-64D4F5B16551}" 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 | {27F3B647-1CB6-4AEE-A94A-64D4F5B16551}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {27F3B647-1CB6-4AEE-A94A-64D4F5B16551}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {27F3B647-1CB6-4AEE-A94A-64D4F5B16551}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {27F3B647-1CB6-4AEE-A94A-64D4F5B16551}.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 = {9B330E83-3021-4EE3-A5A9-C7741D4D89AD} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /Examples/ParcelFabric/ParcelFabric.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | net8.0-windows7.0 4 | true 5 | win10-x64 6 | false 7 | true 8 | CA1416 9 | 10 | 11 | 12 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Core\ArcGIS.Desktop.Core.dll 13 | False 14 | 15 | 16 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Mapping\ArcGIS.Desktop.Mapping.dll 17 | False 18 | 19 | 20 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Framework.dll 21 | False 22 | 23 | 24 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Core.dll 25 | False 26 | 27 | 28 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Editing\ArcGIS.Desktop.Editing.dll 29 | False 30 | 31 | 32 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Catalog\ArcGIS.Desktop.Catalog.dll 33 | False 34 | 35 | 36 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DesktopExtensions\ArcGIS.Desktop.Extensions.dll 37 | False 38 | 39 | 40 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Shared.Wpf.dll 41 | False 42 | 43 | 44 | C:\Program Files\ArcGIS\Pro\bin\Extensions\ArcGISSearch\ArcGIS.Desktop.Search.dll 45 | False 46 | 47 | 48 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataSourcesRaster\ArcGIS.Desktop.DataSourcesRaster.dll 49 | False 50 | 51 | 52 | C:\Program Files\ArcGIS\Pro\bin\Extensions\GeoProcessing\ArcGIS.Desktop.GeoProcessing.dll 53 | False 54 | 55 | 56 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Layout\ArcGIS.Desktop.Layouts.dll 57 | False 58 | 59 | 60 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Sharing\ArcGIS.Desktop.Sharing.dll 61 | False 62 | 63 | 64 | C:\Program Files\ArcGIS\Pro\bin\Extensions\TaskAssistant\ArcGIS.Desktop.TaskAssistant.dll 65 | False 66 | 67 | 68 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.CoreHost.dll 69 | False 70 | 71 | 72 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataReviewer\ArcGIS.Desktop.DataReviewer.dll 73 | False 74 | 75 | 76 | -------------------------------------------------------------------------------- /Examples/ParcelFabric/ParcelFabric.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.3.32819.101 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ParcelFabric", "ParcelFabric.csproj", "{BAA8E64B-D451-4C2F-B8AC-040B8DC169B1}" 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 | {BAA8E64B-D451-4C2F-B8AC-040B8DC169B1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {BAA8E64B-D451-4C2F-B8AC-040B8DC169B1}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {BAA8E64B-D451-4C2F-B8AC-040B8DC169B1}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {BAA8E64B-D451-4C2F-B8AC-040B8DC169B1}.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 = {3DA370A6-A5BD-4B78-8CB8-0BDEEFC7D9DC} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /Examples/Raster/Raster.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | net8.0-windows7.0 4 | true 5 | win10-x64 6 | false 7 | true 8 | CA1416 9 | 10 | 11 | 12 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Core\ArcGIS.Desktop.Core.dll 13 | False 14 | 15 | 16 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Mapping\ArcGIS.Desktop.Mapping.dll 17 | False 18 | 19 | 20 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Framework.dll 21 | False 22 | 23 | 24 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Core.dll 25 | False 26 | 27 | 28 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Editing\ArcGIS.Desktop.Editing.dll 29 | False 30 | 31 | 32 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Catalog\ArcGIS.Desktop.Catalog.dll 33 | False 34 | 35 | 36 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DesktopExtensions\ArcGIS.Desktop.Extensions.dll 37 | False 38 | 39 | 40 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Shared.Wpf.dll 41 | False 42 | 43 | 44 | C:\Program Files\ArcGIS\Pro\bin\Extensions\ArcGISSearch\ArcGIS.Desktop.Search.dll 45 | False 46 | 47 | 48 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataSourcesRaster\ArcGIS.Desktop.DataSourcesRaster.dll 49 | False 50 | 51 | 52 | C:\Program Files\ArcGIS\Pro\bin\Extensions\GeoProcessing\ArcGIS.Desktop.GeoProcessing.dll 53 | False 54 | 55 | 56 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Layout\ArcGIS.Desktop.Layouts.dll 57 | False 58 | 59 | 60 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Sharing\ArcGIS.Desktop.Sharing.dll 61 | False 62 | 63 | 64 | C:\Program Files\ArcGIS\Pro\bin\Extensions\TaskAssistant\ArcGIS.Desktop.TaskAssistant.dll 65 | False 66 | 67 | 68 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.CoreHost.dll 69 | False 70 | 71 | 72 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataReviewer\ArcGIS.Desktop.DataReviewer.dll 73 | False 74 | 75 | 76 | -------------------------------------------------------------------------------- /Examples/Raster/Raster.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.1.32319.34 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Raster", "Raster.csproj", "{64E830AF-B167-4FB8-949D-B6787532412F}" 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 | {64E830AF-B167-4FB8-949D-B6787532412F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {64E830AF-B167-4FB8-949D-B6787532412F}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {64E830AF-B167-4FB8-949D-B6787532412F}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {64E830AF-B167-4FB8-949D-B6787532412F}.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 = {CB76CC1D-7B0F-486B-A76A-E709481AD909} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /Examples/RegionToExampleMap.csv: -------------------------------------------------------------------------------- 1 | "Region String in Snippet","Fully qualified name" 2 | "Move a Polyline","ArcGIS.Desktop.Mapping.Map" 3 | "Move a Polyline","ArcGIS.Desktop.Mapping.Map.GetLayersAsFlattenedList" -------------------------------------------------------------------------------- /Examples/Resource1.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace MapExploration { 12 | using System; 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resource1 { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resource1() { 33 | } 34 | 35 | /// 36 | /// Returns the cached ResourceManager instance used by this class. 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | internal static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("MapExploration.Resource1", typeof(Resource1).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// Overrides the current thread's CurrentUICulture property for all 51 | /// resource lookups using this strongly typed resource class. 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | internal static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | 63 | /// 64 | /// Looks up a localized resource of type System.Byte[]. 65 | /// 66 | internal static byte[] red_cursor { 67 | get { 68 | object obj = ResourceManager.GetObject("red_cursor", resourceCulture); 69 | return ((byte[])(obj)); 70 | } 71 | } 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /Examples/SceneLayers/ProSnippets.cs: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright 2018 Esri 4 | 5 | Licensed under the Apache License, Version 2.0 (the "License"); 6 | you may not use this file except in compliance with the License. 7 | You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | 15 | See the License for the specific language governing permissions and 16 | limitations under the License. 17 | 18 | */ 19 | using System; 20 | using System.Collections.Generic; 21 | using System.Linq; 22 | using System.Text; 23 | using System.Threading.Tasks; 24 | using ArcGIS.Desktop.Framework; 25 | 26 | //added references 27 | using ArcGIS.Desktop.Core; 28 | using ArcGIS.Desktop.Layouts; 29 | using ArcGIS.Desktop.Mapping; 30 | using ArcGIS.Desktop.Framework.Threading.Tasks; 31 | using ArcGIS.Desktop.Framework.Contracts; 32 | using ArcGIS.Core.CIM; 33 | using ArcGIS.Core.Geometry; 34 | using ArcGIS.Core.Data; 35 | 36 | namespace ProSnippetsTasks 37 | { 38 | class SnippetsSceneLayer 39 | { 40 | public async void Examples() 41 | { 42 | // cref: ArcGIS.Desktop.Mapping.FeatureSceneLayer 43 | // cref: ArcGIS.Desktop.Mapping.LayerFactory.CreateLayer(LayerCreationParams,ILayerContainerEdit) 44 | // cref: ArcGIS.Desktop.Mapping.LayerCreationParams.#ctor(Uri) 45 | // cref: ArcGIS.Desktop.Mapping.LayerCreationParams.IsVisible 46 | // cref: ArcGIS.Desktop.Mapping.LayerFactory 47 | #region Create a Scene Layer 48 | 49 | var sceneLayerUrl = @"https://myportal.com/server/rest/services/Hosted/SceneLayerServiceName/SceneServer"; 50 | //portal items also ok as long as the portal is the current active portal... 51 | //var sceneLayerUrl = @"https://myportal.com/home/item.html?id=123456789abcdef1234567890abcdef0"; 52 | 53 | await QueuedTask.Run(() => 54 | { 55 | //Create with initial visibility set to false. Add to current scene 56 | var createparams = new LayerCreationParams(new Uri(sceneLayerUrl, UriKind.Absolute)) 57 | { 58 | IsVisible = false 59 | }; 60 | 61 | //cast to specific type of scene layer being created - in this case FeatureSceneLayer 62 | var sceneLayer = LayerFactory.Instance.CreateLayer( 63 | createparams, MapView.Active.Map) as FeatureSceneLayer; 64 | //or...specify the cast directly 65 | var sceneLayer2 = LayerFactory.Instance.CreateLayer( 66 | createparams, MapView.Active.Map); 67 | //ditto for BuildingSceneLayer, PointCloudSceneLayer, IntegratedMeshSceneLayer 68 | //... 69 | }); 70 | 71 | #endregion 72 | 73 | } 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /Examples/SceneLayers/ProSnippetsBuildingSceneLayerDiscipline.cs: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright 2018 Esri 4 | 5 | Licensed under the Apache License, Version 2.0 (the "License"); 6 | you may not use this file except in compliance with the License. 7 | You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | 15 | See the License for the specific language governing permissions and 16 | limitations under the License. 17 | 18 | */ 19 | using System; 20 | using System.Collections.Generic; 21 | using System.Linq; 22 | using System.Text; 23 | using System.Threading.Tasks; 24 | using ArcGIS.Desktop.Framework; 25 | 26 | //added references 27 | using ArcGIS.Desktop.Core; 28 | using ArcGIS.Desktop.Layouts; 29 | using ArcGIS.Desktop.Mapping; 30 | using ArcGIS.Desktop.Framework.Threading.Tasks; 31 | using ArcGIS.Desktop.Framework.Contracts; 32 | using ArcGIS.Core.CIM; 33 | using ArcGIS.Core.Geometry; 34 | using ArcGIS.Core.Data; 35 | 36 | namespace ProSnippetsBuildingSceneLayerDiscipline 37 | { 38 | #region ProSnippet Group: Building Discipline Scene Layer 39 | #endregion 40 | 41 | class ProSnippetsBuildingSceneLayerDiscipline 42 | { 43 | public async void Examples() 44 | { 45 | // cref: ArcGIS.Desktop.Mapping.BuildingDisciplineSceneLayer 46 | // cref: ArcGIS.Desktop.Mapping.BuildingDisciplineSceneLayer.GetDiscipline 47 | #region Get BuildingDisciplineSceneLayer Discipline 48 | var bsl_discipline = MapView.Active.Map.GetLayersAsFlattenedList().OfType().FirstOrDefault(l => l.Name == "Architectural"); 49 | var disciplineName = bsl_discipline.GetDiscipline(); 50 | #endregion 51 | 52 | } 53 | // cref: ArcGIS.Desktop.Mapping.BuildingSceneLayer 54 | // cref: ArcGIS.Desktop.Mapping.BuildingDisciplineSceneLayer 55 | // cref: ArcGIS.Desktop.Mapping.BuildingDisciplineSceneLayer.GetDiscipline 56 | // cref: ARCGIS.DESKTOP.MAPPING.COMPOSITELAYER.LAYERS 57 | // cref: ARCGIS.DESKTOP.MAPPING.COMPOSITELAYER.FINDLAYERS 58 | #region Enumerate the Discipline Layers from a Building SceneLayer 59 | public void QueryBuildingSceneLayer() 60 | { 61 | var bldgLayer = MapView.Active.Map.GetLayersAsFlattenedList().OfType().First(); 62 | var disciplines = new Dictionary(); 63 | //A Building layer has two children - Overview and FullModel 64 | //Overview is a FeatureSceneLayer 65 | //Full Model is a BuildingDisciplineSceneLayer that contains the disciplines 66 | 67 | var fullModel = bldgLayer.FindLayers("Full Model").First() 68 | as BuildingDisciplineSceneLayer; 69 | CollectDisciplineLayers(fullModel, disciplines); 70 | 71 | } 72 | 73 | internal void CollectDisciplineLayers(BuildingDisciplineSceneLayer disciplineLayer, 74 | Dictionary disciplines) 75 | { 76 | //collect information on the disciplines 77 | var name = disciplineLayer.Name; 78 | //At 2.x - var layerType = 79 | // ((ISceneLayerInfo)disciplineLayer).SceneServiceLayerType.ToString(); 80 | 81 | var discipline = disciplineLayer.GetDiscipline(); 82 | //etc 83 | //TODO - use collected information 84 | 85 | disciplines.Add(discipline, disciplineLayer); 86 | 87 | //Discipline layers are composite layers too 88 | foreach (var childDiscipline in disciplineLayer.Layers 89 | .OfType()) 90 | { 91 | //Discipline layers can also contain FeatureSceneLayers that render the 92 | //individual full model contents 93 | var content_names = string.Join(", ", childDiscipline.Layers 94 | .OfType().Select(fl => fl.Name)); 95 | CollectDisciplineLayers(childDiscipline, disciplines); 96 | } 97 | } 98 | 99 | #endregion 100 | } 101 | } -------------------------------------------------------------------------------- /Examples/SceneLayers/ProSnippetsEditingFeatureSceneLayer.cs: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright 2018 Esri 4 | 5 | Licensed under the Apache License, Version 2.0 (the "License"); 6 | you may not use this file except in compliance with the License. 7 | You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | 15 | See the License for the specific language governing permissions and 16 | limitations under the License. 17 | 18 | */ 19 | using System; 20 | using System.Collections.Generic; 21 | using System.Linq; 22 | using System.Text; 23 | using System.Threading.Tasks; 24 | using ArcGIS.Desktop.Framework; 25 | 26 | //added references 27 | using ArcGIS.Desktop.Core; 28 | using ArcGIS.Desktop.Layouts; 29 | using ArcGIS.Desktop.Editing; 30 | using ArcGIS.Desktop.Editing.Attributes; 31 | using ArcGIS.Desktop.Mapping; 32 | using ArcGIS.Desktop.Framework.Threading.Tasks; 33 | using ArcGIS.Desktop.Framework.Contracts; 34 | using ArcGIS.Core.CIM; 35 | using ArcGIS.Core.Geometry; 36 | using ArcGIS.Core.Data; 37 | 38 | namespace ProSnippetsEditingFeatureSceneLayer 39 | { 40 | 41 | #region ProSnippet Group: FeatureSceneLayer Editing 42 | #endregion 43 | 44 | class ProSnippetsEditingFeatureSceneLayer 45 | { 46 | public async void Examples() 47 | { 48 | //#region Name of FeatureSceneLayer 49 | //var featureSceneLayer = MapView.Active.Map.GetLayersAsFlattenedList().OfType().FirstOrDefault(); 50 | //var scenelayerName = featureSceneLayer?.Name; 51 | 52 | //#endregion 53 | } 54 | 55 | public async void Examples2() 56 | { 57 | // cref: ArcGIS.Desktop.Mapping.FeatureSceneLayer.HasAssociatedFeatureService 58 | // cref: ArcGIS.Desktop.Mapping.FeatureSceneLayer.IsEditable 59 | #region Determine if a FeatureSceneLayer supports editing 60 | 61 | var featSceneLayer = MapView.Active.Map.GetLayersAsFlattenedList() 62 | .OfType().FirstOrDefault(); 63 | if (!featSceneLayer.HasAssociatedFeatureService || 64 | !featSceneLayer.IsEditable) 65 | return;//not supported 66 | 67 | //TODO continue editing here... 68 | 69 | #endregion 70 | 71 | // create a new point at specified coordinates 72 | MapPoint mapPoint = MapPointBuilderEx.CreateMapPoint(122.39, 37.78); 73 | 74 | // cref: ArcGIS.Desktop.Mapping.FeatureSceneLayer.HasAssociatedFeatureService 75 | // cref: ArcGIS.Desktop.Mapping.FeatureSceneLayer.IsEditable 76 | // cref: ArcGIS.Desktop.Mapping.FeatureSceneLayer.ShapeType 77 | #region Create a new Point feature in FeatureSceneLayer 78 | 79 | //must support editing! 80 | //var featSceneLayer = ... ; 81 | if (!featSceneLayer.HasAssociatedFeatureService || 82 | !featSceneLayer.IsEditable) 83 | return; 84 | //Check geometry type...must be point in this example 85 | if (featSceneLayer.ShapeType != esriGeometryType.esriGeometryPoint) 86 | return; 87 | 88 | var editOp = new EditOperation() 89 | { 90 | Name = "Create new 3d point feature", 91 | SelectNewFeatures = true 92 | }; 93 | 94 | var attributes = new Dictionary(); 95 | //mapPoint contains the new 3d point location 96 | attributes.Add("SHAPE", mapPoint); 97 | attributes.Add("TreeID", "1"); 98 | editOp.Create(featSceneLayer, attributes); 99 | editOp.ExecuteAsync();//fyi, no await 100 | 101 | #endregion 102 | 103 | // cref: ArcGIS.Desktop.Mapping.FeatureSceneLayer.HasAssociatedFeatureService 104 | // cref: ArcGIS.Desktop.Mapping.FeatureSceneLayer.IsEditable 105 | // cref: ArcGIS.Desktop.Mapping.FeatureSceneLayer.GetSelection 106 | // cref: ArcGIS.Desktop.Editing.EditOperation.Delete(ArcGIS.Desktop.Mapping.MapMember,System.Collections.Generic.IEnumerable{System.Int64}) 107 | #region Delete all the selected features in FeatureSceneLayer 108 | 109 | //must support editing! 110 | //var featSceneLayer = .... ; 111 | if (!featSceneLayer.HasAssociatedFeatureService || 112 | !featSceneLayer.IsEditable) 113 | return; 114 | 115 | var delOp = new EditOperation() 116 | { 117 | Name = "Delete selected features" 118 | }; 119 | //Assuming we have a selection on the layer... 120 | delOp.Delete(featSceneLayer, featSceneLayer.GetSelection().GetObjectIDs()); 121 | await delOp.ExecuteAsync();//await if needed but not required 122 | 123 | #endregion 124 | } 125 | 126 | public async void Examples3() 127 | { 128 | var oid = 1; 129 | 130 | // cref: ArcGIS.Desktop.Mapping.FeatureSceneLayer.HasAssociatedFeatureService 131 | // cref: ArcGIS.Desktop.Mapping.FeatureSceneLayer.IsEditable 132 | // cref: ArcGIS.Desktop.Editing.Attributes.Inspector.Load 133 | // cref: ArcGIS.Desktop.Editing.EditOperation.Modify 134 | #region Edit the attributes of a FeatureSceneLayer 135 | //must support editing! 136 | var featSceneLayer = MapView.Active.Map.GetLayersAsFlattenedList() 137 | .OfType().FirstOrDefault(); 138 | if (!featSceneLayer.HasAssociatedFeatureService || 139 | !featSceneLayer.IsEditable) 140 | return; 141 | 142 | var ok = await QueuedTask.Run(() => 143 | { 144 | var editOp = new EditOperation() 145 | { 146 | Name = "Edit FeatureSceneLayer Attributes", 147 | SelectModifiedFeatures = true 148 | }; 149 | //make an inspector 150 | var inspector = new Inspector(); 151 | //get the attributes for the specified oid 152 | inspector.Load(featSceneLayer, oid); 153 | inspector["PermitNotes"] = "test";//modify 154 | editOp.Modify(inspector); 155 | return editOp.Execute();//synchronous flavor 156 | }); 157 | 158 | #endregion 159 | } 160 | } 161 | } 162 | -------------------------------------------------------------------------------- /Examples/SceneLayers/SceneLayers.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | net8.0-windows7.0 4 | true 5 | win10-x64 6 | false 7 | true 8 | CA1416 9 | 10 | 11 | 12 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Core\ArcGIS.Desktop.Core.dll 13 | False 14 | 15 | 16 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Mapping\ArcGIS.Desktop.Mapping.dll 17 | False 18 | 19 | 20 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Framework.dll 21 | False 22 | 23 | 24 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Core.dll 25 | False 26 | 27 | 28 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Editing\ArcGIS.Desktop.Editing.dll 29 | False 30 | 31 | 32 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Catalog\ArcGIS.Desktop.Catalog.dll 33 | False 34 | 35 | 36 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DesktopExtensions\ArcGIS.Desktop.Extensions.dll 37 | False 38 | 39 | 40 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Shared.Wpf.dll 41 | False 42 | 43 | 44 | C:\Program Files\ArcGIS\Pro\bin\Extensions\ArcGISSearch\ArcGIS.Desktop.Search.dll 45 | False 46 | 47 | 48 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataSourcesRaster\ArcGIS.Desktop.DataSourcesRaster.dll 49 | False 50 | 51 | 52 | C:\Program Files\ArcGIS\Pro\bin\Extensions\GeoProcessing\ArcGIS.Desktop.GeoProcessing.dll 53 | False 54 | 55 | 56 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Layout\ArcGIS.Desktop.Layouts.dll 57 | False 58 | 59 | 60 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Sharing\ArcGIS.Desktop.Sharing.dll 61 | False 62 | 63 | 64 | C:\Program Files\ArcGIS\Pro\bin\Extensions\TaskAssistant\ArcGIS.Desktop.TaskAssistant.dll 65 | False 66 | 67 | 68 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.CoreHost.dll 69 | False 70 | 71 | 72 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataReviewer\ArcGIS.Desktop.DataReviewer.dll 73 | False 74 | 75 | 76 | -------------------------------------------------------------------------------- /Examples/SceneLayers/SceneLayers.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.1.32319.34 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SceneLayers", "SceneLayers.csproj", "{662A0A78-9953-42AF-A09F-318A51CAE81A}" 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 | {662A0A78-9953-42AF-A09F-318A51CAE81A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {662A0A78-9953-42AF-A09F-318A51CAE81A}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {662A0A78-9953-42AF-A09F-318A51CAE81A}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {662A0A78-9953-42AF-A09F-318A51CAE81A}.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 = {D5911A4C-BF24-489F-BB78-37C4BCA24C64} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /Examples/Sharing/ProSnippets.cs: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright 2018 Esri 4 | 5 | Licensed under the Apache License, Version 2.0 (the "License"); 6 | you may not use this file except in compliance with the License. 7 | You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | 15 | See the License for the specific language governing permissions and 16 | limitations under the License. 17 | 18 | */ 19 | using ArcGIS.Desktop.Core; 20 | using ArcGIS.Desktop.Framework.Threading.Tasks; 21 | using ArcGIS.Desktop.Mapping; 22 | using System; 23 | using System.Collections.Generic; 24 | using System.Linq; 25 | using System.Text; 26 | using System.Threading.Tasks; 27 | using System.Windows; 28 | 29 | namespace Content.Sharing.ProSnippet 30 | { 31 | internal class ProSnippet 32 | { 33 | public static void EsriHttpClientMethods() 34 | { 35 | // cref: ArcGIS.Desktop.Core.ArcGISPortalManager 36 | // cref: ArcGIS.Desktop.Core.ArcGISPortalManager.Current 37 | // cref: ArcGIS.Desktop.Core.ArcGISPortalManager.GetActivePortal() 38 | // cref: ArcGIS.Desktop.Core.ArcGISPortal 39 | // cref: ArcGIS.Desktop.Core.ArcGISPortal.PortalUri 40 | #region ArcGISPortalManager: Get the Current Active Portal 41 | 42 | var active_portal = ArcGISPortalManager.Current.GetActivePortal(); 43 | string uri = active_portal.PortalUri.ToString(); 44 | 45 | #endregion 46 | 47 | // cref: ArcGIS.Desktop.Core.ArcGISPortalManager 48 | // cref: ArcGIS.Desktop.Core.ArcGISPortalManager.Current 49 | // cref: ArcGIS.Desktop.Core.ArcGISPortalManager.GetPortals() 50 | // cref: ArcGIS.Desktop.Core.ArcGISPortal 51 | // cref: ArcGIS.Desktop.Core.ArcGISPortal.PortalUri 52 | #region ArcGISPortalManager: Get a list of all your Portals 53 | 54 | var portals = ArcGISPortalManager.Current.GetPortals(); 55 | //Make a list of all the Uris 56 | var portalUris = portals.Select(p => p.PortalUri.ToString()).ToList(); 57 | 58 | #endregion 59 | 60 | // cref: ArcGIS.Desktop.Core.ArcGISPortalManager 61 | // cref: ArcGIS.Desktop.Core.ArcGISPortalManager.Current 62 | // cref: ArcGIS.Desktop.Core.ArcGISPortalManager.AddPortal(System.Uri) 63 | #region ArcGISPortalManager: Add a portal to the list of portals 64 | 65 | var portalUri = new Uri("http://myportal.esri.com/portal/", UriKind.Absolute); 66 | ArcGISPortalManager.Current.AddPortal(portalUri); 67 | 68 | #endregion 69 | 70 | // cref: ArcGIS.Desktop.Core.ArcGISPortalManager 71 | // cref: ArcGIS.Desktop.Core.ArcGISPortalManager.Current 72 | // cref: ArcGIS.Desktop.Core.ArcGISPortalManager.GetPortal(System.Uri) 73 | // cref: ArcGIS.Desktop.Core.ArcGISPortal 74 | // cref: ArcGIS.Desktop.Core.ArcGISPortal.IsSignedOn() 75 | // cref: ArcGIS.Desktop.Core.ArcGISPortal.SignIn() 76 | // cref: ArcGIS.Desktop.Core.SignInResult 77 | // cref: ArcGIS.Desktop.Core.SignInResult.success 78 | // cref: ArcGIS.Desktop.Core.ArcGISPortalManager.SetActivePortal(ArcGIS.Desktop.Core.ArcGISPortal) 79 | #region ArcGISPortalManager: Get a portal and Sign In, Set it Active 80 | 81 | //Find the portal to sign in with using its Uri... 82 | var portal = ArcGISPortalManager.Current.GetPortal(new Uri(uri, UriKind.Absolute)); 83 | if (!portal.IsSignedOn()) 84 | { 85 | //Calling "SignIn" will trigger the OAuth popup if your credentials are 86 | //not cached (eg from a previous sign in in the session) 87 | if (portal.SignIn().success) 88 | { 89 | //Set this portal as my active portal 90 | ArcGISPortalManager.Current.SetActivePortal(portal); 91 | } 92 | } 93 | 94 | #endregion 95 | 96 | // cref: ArcGIS.Desktop.Core.Events.ActivePortalChangedEvent 97 | // cref: ArcGIS.Desktop.Core.Events.ActivePortalChangedEvent.Subscribe 98 | // cref: ArcGIS.Desktop.Core.Events.ActivePortalChangedEventArgs 99 | // cref: ArcGIS.Desktop.Core.Events.ActivePortalChangedEventArgs.ActivePortal 100 | // cref: ArcGIS.Desktop.Core.Events.ArcGISPortalAddedEvent 101 | // cref: ArcGIS.Desktop.Core.Events.ArcGISPortalAddedEvent.Subscribe 102 | // cref: ArcGIS.Desktop.Core.Events.ArcGISPortalAddedEventArgs 103 | // cref: ArcGIS.Desktop.Core.Events.ArcGISPortalAddedEventArgs.Portal 104 | // cref: ArcGIS.Desktop.Core.Events.ArcGISPortalRemovedEvent 105 | // cref: ArcGIS.Desktop.Core.Events.ArcGISPortalRemovedEvent.Subscribe 106 | // cref: ArcGIS.Desktop.Core.Events.ArcGISPortalRemovedEventArgs 107 | // cref: ArcGIS.Desktop.Core.Events.ArcGISPortalRemovedEventArgs.RemovedPortalUri 108 | // cref: ArcGIS.Desktop.Core.Events.PortalSignOnChangedEvent 109 | // cref: ArcGIS.Desktop.Core.Events.PortalSignOnChangedEvent.Subscribe 110 | // cref: ArcGIS.Desktop.Core.Events.PortalSignOnChangedEventArgs 111 | // cref: ArcGIS.Desktop.Core.Events.PortalSignOnChangedEventArgs.Portal 112 | // cref: ArcGIS.Desktop.Core.Events.PortalSignOnChangedEventArgs.IsSignedOn 113 | #region ArcGISPortalManager: Listen for the Portal Events 114 | 115 | ArcGIS.Desktop.Core.Events.ActivePortalChangedEvent.Subscribe((args) => 116 | { 117 | 118 | var active_uri = args.ActivePortal?.PortalUri.ToString(); 119 | //etc 120 | }); 121 | 122 | ArcGIS.Desktop.Core.Events.ArcGISPortalAddedEvent.Subscribe((args) => 123 | { 124 | var added_portal = args.Portal; 125 | //etc 126 | }); 127 | 128 | ArcGIS.Desktop.Core.Events.ArcGISPortalRemovedEvent.Subscribe((args) => 129 | { 130 | var old_uri = args.RemovedPortalUri; 131 | //etc 132 | }); 133 | 134 | ArcGIS.Desktop.Core.Events.PortalSignOnChangedEvent.Subscribe((args) => 135 | { 136 | var portal = args.Portal; 137 | var isSignedOn = args.IsSignedOn; 138 | //etc 139 | }); 140 | 141 | #endregion 142 | } 143 | 144 | } 145 | } -------------------------------------------------------------------------------- /Examples/Sharing/Sharing.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | net8.0-windows7.0 4 | true 5 | win10-x64 6 | false 7 | true 8 | CA1416 9 | 10 | 11 | 12 | 13 | 14 | 15 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Core\ArcGIS.Desktop.Core.dll 16 | False 17 | 18 | 19 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Mapping\ArcGIS.Desktop.Mapping.dll 20 | False 21 | 22 | 23 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Framework.dll 24 | False 25 | 26 | 27 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Core.dll 28 | False 29 | 30 | 31 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Editing\ArcGIS.Desktop.Editing.dll 32 | False 33 | 34 | 35 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Catalog\ArcGIS.Desktop.Catalog.dll 36 | False 37 | 38 | 39 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DesktopExtensions\ArcGIS.Desktop.Extensions.dll 40 | False 41 | 42 | 43 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Shared.Wpf.dll 44 | False 45 | 46 | 47 | C:\Program Files\ArcGIS\Pro\bin\Extensions\ArcGISSearch\ArcGIS.Desktop.Search.dll 48 | False 49 | 50 | 51 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataSourcesRaster\ArcGIS.Desktop.DataSourcesRaster.dll 52 | False 53 | 54 | 55 | C:\Program Files\ArcGIS\Pro\bin\Extensions\GeoProcessing\ArcGIS.Desktop.GeoProcessing.dll 56 | False 57 | 58 | 59 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Layout\ArcGIS.Desktop.Layouts.dll 60 | False 61 | 62 | 63 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Sharing\ArcGIS.Desktop.Sharing.dll 64 | False 65 | 66 | 67 | C:\Program Files\ArcGIS\Pro\bin\Extensions\TaskAssistant\ArcGIS.Desktop.TaskAssistant.dll 68 | False 69 | 70 | 71 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.CoreHost.dll 72 | False 73 | 74 | 75 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataReviewer\ArcGIS.Desktop.DataReviewer.dll 76 | False 77 | 78 | 79 | -------------------------------------------------------------------------------- /Examples/Sharing/Sharing.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.1.32319.34 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sharing", "Sharing.csproj", "{ADD08785-6DF6-4E76-94F2-5B130226771C}" 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 | {ADD08785-6DF6-4E76-94F2-5B130226771C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {ADD08785-6DF6-4E76-94F2-5B130226771C}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {ADD08785-6DF6-4E76-94F2-5B130226771C}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {ADD08785-6DF6-4E76-94F2-5B130226771C}.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 = {5638D077-1D7D-4AAD-B376-B15A667D0379} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /Examples/Tasks/Task.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | net8.0-windows7.0 4 | true 5 | win10-x64 6 | false 7 | true 8 | CA1416 9 | 10 | 11 | 12 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Core\ArcGIS.Desktop.Core.dll 13 | False 14 | 15 | 16 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Mapping\ArcGIS.Desktop.Mapping.dll 17 | False 18 | 19 | 20 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Framework.dll 21 | False 22 | 23 | 24 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Core.dll 25 | False 26 | 27 | 28 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Editing\ArcGIS.Desktop.Editing.dll 29 | False 30 | 31 | 32 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Catalog\ArcGIS.Desktop.Catalog.dll 33 | False 34 | 35 | 36 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DesktopExtensions\ArcGIS.Desktop.Extensions.dll 37 | False 38 | 39 | 40 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Shared.Wpf.dll 41 | False 42 | 43 | 44 | C:\Program Files\ArcGIS\Pro\bin\Extensions\ArcGISSearch\ArcGIS.Desktop.Search.dll 45 | False 46 | 47 | 48 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataSourcesRaster\ArcGIS.Desktop.DataSourcesRaster.dll 49 | False 50 | 51 | 52 | C:\Program Files\ArcGIS\Pro\bin\Extensions\GeoProcessing\ArcGIS.Desktop.GeoProcessing.dll 53 | False 54 | 55 | 56 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Layout\ArcGIS.Desktop.Layouts.dll 57 | False 58 | 59 | 60 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Sharing\ArcGIS.Desktop.Sharing.dll 61 | False 62 | 63 | 64 | C:\Program Files\ArcGIS\Pro\bin\Extensions\TaskAssistant\ArcGIS.Desktop.TaskAssistant.dll 65 | False 66 | 67 | 68 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.CoreHost.dll 69 | False 70 | 71 | 72 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataReviewer\ArcGIS.Desktop.DataReviewer.dll 73 | False 74 | 75 | 76 | -------------------------------------------------------------------------------- /Examples/Tasks/Task.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.1.32319.34 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Task", "Task.csproj", "{608F3358-D5D9-4059-93E8-FCE8D831B69A}" 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 | {608F3358-D5D9-4059-93E8-FCE8D831B69A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {608F3358-D5D9-4059-93E8-FCE8D831B69A}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {608F3358-D5D9-4059-93E8-FCE8D831B69A}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {608F3358-D5D9-4059-93E8-FCE8D831B69A}.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 = {C55728B6-3AFB-49FF-BB0E-7DA42401BFC4} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /Examples/UtilityNetwork/UtilityNetwork.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | net8.0-windows7.0 4 | true 5 | win10-x64 6 | false 7 | true 8 | CA1416 9 | 10 | 11 | 12 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Core\ArcGIS.Desktop.Core.dll 13 | False 14 | 15 | 16 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Mapping\ArcGIS.Desktop.Mapping.dll 17 | False 18 | 19 | 20 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Framework.dll 21 | False 22 | 23 | 24 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Core.dll 25 | False 26 | 27 | 28 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Editing\ArcGIS.Desktop.Editing.dll 29 | False 30 | 31 | 32 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Catalog\ArcGIS.Desktop.Catalog.dll 33 | False 34 | 35 | 36 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DesktopExtensions\ArcGIS.Desktop.Extensions.dll 37 | False 38 | 39 | 40 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Shared.Wpf.dll 41 | False 42 | 43 | 44 | C:\Program Files\ArcGIS\Pro\bin\Extensions\ArcGISSearch\ArcGIS.Desktop.Search.dll 45 | False 46 | 47 | 48 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataSourcesRaster\ArcGIS.Desktop.DataSourcesRaster.dll 49 | False 50 | 51 | 52 | C:\Program Files\ArcGIS\Pro\bin\Extensions\GeoProcessing\ArcGIS.Desktop.GeoProcessing.dll 53 | False 54 | 55 | 56 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Layout\ArcGIS.Desktop.Layouts.dll 57 | False 58 | 59 | 60 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Sharing\ArcGIS.Desktop.Sharing.dll 61 | False 62 | 63 | 64 | C:\Program Files\ArcGIS\Pro\bin\Extensions\TaskAssistant\ArcGIS.Desktop.TaskAssistant.dll 65 | False 66 | 67 | 68 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.CoreHost.dll 69 | False 70 | 71 | 72 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataReviewer\ArcGIS.Desktop.DataReviewer.dll 73 | False 74 | 75 | 76 | 77 | -------------------------------------------------------------------------------- /Examples/UtilityNetwork/UtilityNetwork.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.1.32319.34 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UtilityNetwork", "UtilityNetwork.csproj", "{912D8B6A-C2AE-4448-8383-65ECA2302B59}" 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 | {912D8B6A-C2AE-4448-8383-65ECA2302B59}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {912D8B6A-C2AE-4448-8383-65ECA2302B59}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {912D8B6A-C2AE-4448-8383-65ECA2302B59}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {912D8B6A-C2AE-4448-8383-65ECA2302B59}.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 = {B7D7A9E9-E473-424E-83F9-045D1D108A09} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /Examples/WorkflowManager/WorkflowManager.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | net8.0-windows7.0 4 | true 5 | win10-x64 6 | false 7 | true 8 | CA1416 9 | 10 | 11 | 12 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Core\ArcGIS.Desktop.Core.dll 13 | False 14 | 15 | 16 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Mapping\ArcGIS.Desktop.Mapping.dll 17 | False 18 | 19 | 20 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Framework.dll 21 | False 22 | 23 | 24 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Core.dll 25 | False 26 | 27 | 28 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Editing\ArcGIS.Desktop.Editing.dll 29 | False 30 | 31 | 32 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Catalog\ArcGIS.Desktop.Catalog.dll 33 | False 34 | 35 | 36 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DesktopExtensions\ArcGIS.Desktop.Extensions.dll 37 | False 38 | 39 | 40 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Shared.Wpf.dll 41 | False 42 | 43 | 44 | C:\Program Files\ArcGIS\Pro\bin\Extensions\ArcGISSearch\ArcGIS.Desktop.Search.dll 45 | False 46 | 47 | 48 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataSourcesRaster\ArcGIS.Desktop.DataSourcesRaster.dll 49 | False 50 | 51 | 52 | C:\Program Files\ArcGIS\Pro\bin\Extensions\GeoProcessing\ArcGIS.Desktop.GeoProcessing.dll 53 | False 54 | 55 | 56 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Layout\ArcGIS.Desktop.Layouts.dll 57 | False 58 | 59 | 60 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Sharing\ArcGIS.Desktop.Sharing.dll 61 | False 62 | 63 | 64 | C:\Program Files\ArcGIS\Pro\bin\Extensions\TaskAssistant\ArcGIS.Desktop.TaskAssistant.dll 65 | False 66 | 67 | 68 | C:\Program Files\ArcGIS\Pro\bin\ArcGIS.CoreHost.dll 69 | False 70 | 71 | 72 | C:\Program Files\ArcGIS\Pro\bin\Extensions\DataReviewer\ArcGIS.Desktop.DataReviewer.dll 73 | False 74 | 75 | 76 | C:\Program Files\ArcGIS\Pro\bin\Extensions\Workflow\ArcGIS.Desktop.Workflow.Client.dll 77 | 78 | 79 | -------------------------------------------------------------------------------- /Examples/WorkflowManager/WorkflowManager.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.1.32319.34 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WorkflowManager", "WorkflowManager.csproj", "{1C09B2C8-2ABE-46A9-89A4-8E8397E192BF}" 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 | {1C09B2C8-2ABE-46A9-89A4-8E8397E192BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {1C09B2C8-2ABE-46A9-89A4-8E8397E192BF}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {1C09B2C8-2ABE-46A9-89A4-8E8397E192BF}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {1C09B2C8-2ABE-46A9-89A4-8E8397E192BF}.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 = {752B02E9-607A-4308-B234-FB87E107563D} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /Images/waterAnimation.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/Images/waterAnimation.gif -------------------------------------------------------------------------------- /arcgis-pro-sdk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Esri/arcgis-pro-sdk/0262ff9d291063b949547dca6444c1e771acdc4f/arcgis-pro-sdk.png --------------------------------------------------------------------------------