ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Core Namespace / Project Class / SetHomeFolderPath Method
The full path to the location that will be used as the project's home folder

In This Topic
    SetHomeFolderPath Method
    In This Topic
    Sets the current project's home folder. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void SetHomeFolderPath( 
       string folderPath
    )
    Public Sub SetHomeFolderPath( _
       ByVal folderPath As String _
    ) 

    Parameters

    folderPath
    The full path to the location that will be used as the project's home folder
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Remarks

    By default, a project's location is also its home folder. However, the home folder can be set to another location on a local or network disk. For example, new database or server connection files created in ArcGIS Pro are stored in the project's home folder. A project is required to have a home folder.

    If a project is stored on a network computer, you might want to change its home folder to reference a folder on the local computer instead. Anyone who uses the project will be expected to have write access to that folder location. If a project's home folder is not available in the specified location, folders will be created accordingly to satisfy the home folder path. If a project is placed on a network computer that references a home folder in a user's profile directory on their local machine, when another person uses the same project on a different computer folders will be created to generate the original user's profile directory if the user has permission to do so.

    Note that only one person can work with an ArcGIS Pro project at a time. If a project is placed on a network computer, many people can't use it at once.

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also