ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Core Namespace / Project Class / GetDefaultProjectSettings Method
Example

In This Topic
    GetDefaultProjectSettings Method
    In This Topic
    Get the default project settings
    Syntax
    public static CreateProjectSettings GetDefaultProjectSettings()
    Public Shared Function GetDefaultProjectSettings() As CreateProjectSettings

    Return Value

    Example
    Create new project using Pro's default settings
    //Get Pro's default project settings.
    var defaultProjectSettings = Project.GetDefaultProjectSettings();
    //Create a new project using the default project settings
    await Project.CreateAsync(defaultProjectSettings);
    Get the Default Project Folder
    //Get Pro's default project settings.
    var defaultSettings = Project.GetDefaultProjectSettings();
    var defaultProjectPath = defaultSettings.LocationPath;
    if (defaultProjectPath == null)
    {
      // If not set, projects are saved in the user's My Documents\ArcGIS\Projects folder;
      // this folder is created if it doesn't already exist.
      defaultProjectPath = System.IO.Path.Combine(
                  System.Environment.GetFolderPath(
                       Environment.SpecialFolder.MyDocuments),
                  @"ArcGIS\Projects");
    }
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also