This sample shows how to remote start and remote control ArcGIS Pro from an ArcGIS Corehost application.
This sample is comprised of two samples:
- Corehost server application that starts and controls the ArcGIS Pro client: ArcGISProConfigCoreHost
- ArcGIS Pro client application that is started and controlled: ArcGISProConfig
Language: C#
Subject: Console
Contributor: ArcGIS Pro SDK Team <arcgisprosdk@esri.com>
Organization: Esri, https://www.esri.com
Date: 04/04/2024
ArcGIS Pro: 3.3
Visual Studio: 2022
.NET Target Framework: 4.6.1
- Sample data for ArcGIS Pro SDK Community Samples can be downloaded from the Releases page.
- Download the Community Sample data (see under the "Resources" section for downloading sample data). Make sure that the Sample data is unzipped in c:\data and "C:\Data\FeatureTest\FeatureTest.aprx" is available.
- Open both solutions in Visual Studio: ArcGISProConfigCoreHost and ArcGISProConfig
- Rebuild both solutions.
- Make sure this project is available: "C:\Data\FeatureTest\FeatureTest.aprx" or change the path in the Corehost application.
- Run the client application: ArcGISProConfigCoreHost
- Note that the AppDomain is modified on startup to resolve the Assembly Paths for ArcGIS.Core.dll and ArcGIS.CoreHost.dll by using the ArcGIS Pro installation location.
- The ArcGISProConfigCoreHost console application starts ArcGIS Pro with the "ArcGISProConfig" Managed Configuration
- Once ArcGISProConfig has started and is ready, ArcGISProConfigCoreHost sends the project path: "C:\Data\FeatureTest\FeatureTest.aprx" to be opened
- ArcGISProConfig opens the project
- Once the output stops press any key to close the application.
- Close the "ArcGISProConfig" client session (ArcGIS Pro) using the User Interface. Note that closing can be automated as well.
- The "ArcGISProConfigCoreHost" Corehost application terminates after ArcGIS Pro has been closed.
Home | API Reference | Requirements | Download | Samples