Skip to content

Latest commit

 

History

History

ArcGISProConfigCoreHost

ArcGISProConfigCoreHost

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

View it live

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

Resources

Community Sample Resources

Samples Data

  • Sample data for ArcGIS Pro SDK Community Samples can be downloaded from the Releases page.

How to use the sample

  1. 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.
  2. Open both solutions in Visual Studio: ArcGISProConfigCoreHost and ArcGISProConfig
  3. Rebuild both solutions.
  4. Make sure this project is available: "C:\Data\FeatureTest\FeatureTest.aprx" or change the path in the Corehost application.
  5. Run the client application: ArcGISProConfigCoreHost
  6. 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.
  7. The ArcGISProConfigCoreHost console application starts ArcGIS Pro with the "ArcGISProConfig" Managed Configuration
    UI
  8. Once ArcGISProConfig has started and is ready, ArcGISProConfigCoreHost sends the project path: "C:\Data\FeatureTest\FeatureTest.aprx" to be opened
  9. ArcGISProConfig opens the project
    UI
  10. Once the output stops press any key to close the application.
  11. Close the "ArcGISProConfig" client session (ArcGIS Pro) using the User Interface. Note that closing can be automated as well.
  12. The "ArcGISProConfigCoreHost" Corehost application terminates after ArcGIS Pro has been closed.
    UI

      ArcGIS Pro SDK for Microsoft .NET Framework              Home | API Reference | Requirements | Download | Samples