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.
If the LocationPath property is set, the new project will be created in the provided location; the specified folder must already exist on disk.
LocationPath is ignored if the TemplateType is set to Untitled.
//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"); }
Target Platforms: Windows 11, Windows 10, Windows 8.1