### Install RBush NuGet Package Source: https://github.com/esri/arcgis-pro-sdk-community-samples/blob/master/Plugin/SimplePointPluginTest/ReadMe.md To use this sample, you need to install the RBush NuGet package. Use the provided script in the 'NuGet Package Manager Console' to install it. ```csharp Install-Package RBush ``` -------------------------------- ### Install Newtonsoft.Json NuGet Package Source: https://github.com/esri/arcgis-pro-sdk-community-samples/blob/master/Content/ArcGISOnlineConnect/ReadMe.md Install the Newtonsoft.Json NuGet package using the Package Manager Console to handle JSON deserialization. ```csharp Install-Package Newtonsoft.Json ``` -------------------------------- ### Google Visualization API Table and Chart Setup Source: https://github.com/esri/arcgis-pro-sdk-community-samples/blob/master/Map-Exploration/CustomPopup/template.html Loads the Google Visualization API and sets up the callback for drawing the table. This is the entry point for the visualization. ```javascript google.load("visualization", "1.1", { packages: ["table", "corechart"] }); google.setOnLoadCallback(drawTable); ``` -------------------------------- ### Get User Content from ArcGIS Online Source: https://github.com/esri/arcgis-pro-sdk-community-samples/blob/master/Content/ArcGISOnlineConnect/ReadMe.md Retrieve content belonging to a specific user using GetUserContentAsync. The username parameter is required. ```csharp PortalQueryResultSet results = await ArcGISPortalExtensions.GetUserContentAsync(portal, username); ``` -------------------------------- ### Create and Checkout a Branch Simultaneously Source: https://github.com/esri/arcgis-pro-sdk-community-samples/wiki/ProGuide-Contribute-Samples A shortcut command to both create a new branch and immediately switch to it, streamlining the branching process. ```bash $git checkout -b / ``` -------------------------------- ### Get User Content for a Specific Folder Source: https://github.com/esri/arcgis-pro-sdk-community-samples/blob/master/Content/ArcGISOnlineConnect/ReadMe.md Fetch content for a user within a particular folder using GetUserContentAsync. Requires username and folderID. Ensure the folder exists in 'My content'. ```csharp PortalQueryResultSet results = await ArcGISPortalExtensions.GetUserContentAsync(portal, username, folderID); ``` -------------------------------- ### Enable XML Documentation File in Project Properties Source: https://github.com/esri/arcgis-pro-sdk-community-samples/wiki/ProGuide-Contribute-Samples Enable the generation of an XML documentation file for your project. This is done within the project's Build properties in Visual Studio. ```xml XML Documentation File ``` -------------------------------- ### Export Subnetwork JSON Output Example Source: https://github.com/esri/arcgis-pro-sdk-community-samples/blob/master/UtilityNetwork/ExportSubnetwork/ReadMe.md This JSON structure represents the output of the Export Subnetwork tool, detailing controllers and connectivity information. Note the truncated '...' indicating omitted data. ```json { "controllers" : [ { "networkSourceId" : 6, "globalId" : "{2F82291C-ED2E-40F5-AB36-FEB0C50E3353}", "objectId" : 9990, "terminalId" : 16, "assetGroupCode" : 26, "assetTypeCode" : 503, "geometry" : { "x" : 1028298.19683201239, "y" : 1863426.35552436113, "z" : 0, "m" : null }, "networkSourceName" : "ElectricDevice", "assetGroupName" : "Medium Voltage Circuit Breaker", "assetTypeName" : "Three Phase Circuit Breaker", "terminalName" : "CB:Line Side" } ], "connectivity" : [ { "viaNetworkSourceId" : 6, "viaGlobalId" : "{BBB77A64-8CB6-4754-AD95-0F4E91A6B283}", "viaObjectId" : 11132, "viaPositionFrom" : 0, "viaPositionTo" : 1, "viaGeometry" : { "x" : 1027726.15827792883, "y" : 1863365.88910986483, "z" : 0, "m" : null }, "fromNetworkSourceId" : 6, "fromGlobalId" : "{BBB77A64-8CB6-4754-AD95-0F4E91A6B283}", "fromObjectId" : 11132, "fromTerminalId" : 7, "fromGeometry" : { "x" : 1027726.15827792883, "y" : 1863365.88910986483, "z" : 0, "m" : null . . . . ``` -------------------------------- ### Dojo Tree Initialization Source: https://github.com/esri/arcgis-pro-sdk-community-samples/blob/master/Map-Exploration/CustomIdentify/template.html Initializes a Dojo Tree with a ForestStoreModel. Ensure the target HTML element has the ID 'tree'. Connects the window's onresize event to the tree's resize method. ```javascript dojoConfig = { parseOnLoad: true } body { width: 100%;height: 100%; } div { width: 100%; height: 100%; overflow: hidden; } .success { background-color: #ccffcc; width: 100%; height: 100%; } ``` ```javascript require([ "dojo/data/ItemFileReadStore", "dijit/Tree", "dijit/tree/ForestStoreModel", "dojo/domReady!" ], function (ItemFileReadStore, Tree, ForestStoreModel) { var theData = { //identifier: 'name', label: 'name', items: 'insert data here' }; // store var theStore = new ItemFileReadStore({ data: theData }); // create model to interface Tree to store var theModel = new ForestStoreModel({ store: theStore, query: { type: 'insert root type field here' }, rootId: 'statesroot', rootLabel: 'insert root layer here' }); var tree = new Tree({ model: theModel }, "tree"); // make sure you have a target HTML element with this id tree.startup(); dojo.connect(window, "onresize", tree, "resize"); }); ``` -------------------------------- ### Export Subnetwork GP Tool Output Example (JSON) Source: https://github.com/esri/arcgis-pro-sdk-community-samples/blob/master/UtilityNetwork/ExportSubnetwork/ExportSubnetwork(C This JSON structure represents the output of the Export Subnetwork GP tool, detailing controllers and connectivity information. It is typically exported to a .json file. ```json { "controllers" : [ { "networkSourceId" : 6, "globalId" : "{2F82291C-ED2E-40F5-AB36-FEB0C50E3353}", "objectId" : 9990, "terminalId" : 16, "assetGroupCode" : 26, "assetTypeCode" : 503, "geometry" : { "x" : 1028298.19683201239, "y" : 1863426.35552436113, "z" : 0, "m" : null }, "networkSourceName" : "ElectricDevice", "assetGroupName" : "Medium Voltage Circuit Breaker", "assetTypeName" : "Three Phase Circuit Breaker", "terminalName" : "CB:Line Side" } ], "connectivity" : [ { "viaNetworkSourceId" : 6, "viaGlobalId" : "{BBB77A64-8CB6-4754-AD95-0F4E91A6B283}", "viaObjectId" : 11132, "viaPositionFrom" : 0, "viaPositionTo" : 1, "viaGeometry" : { "x" : 1027726.15827792883, "y" : 1863365.88910986483, "z" : 0, "m" : null }, "fromNetworkSourceId" : 6, "fromGlobalId" : "{BBB77A64-8CB6-4754-AD95-0F4E91A6B283}", "fromObjectId" : 11132, "fromTerminalId" : 7, "fromGeometry" : { "x" : 1027726.15827792883, "y" : 1863365.88910986483, "z" : 0, "m" : null . . . . ```