Where to find global application settings?

627
2
09-10-2019 07:30 AM
MaximilianGlas
Esri Contributor

Hi,

I have the situation that I want to build my own ArcGIS Pro startpage and create a new Pro project from it.
Now I want to use the default directory for saving new projects, but I can't find a suitable property that would give me this.
Project.Current can't deliver it, because at that time I don't have a project yet and Project.Current is therefore null.
Am I missing something or isn't it there?

Kind regards,

Max

0 Kudos
2 Replies
CharlesMacleod
Esri Regular Contributor

Hi Max, this has been added to 2.5. Look for "public static CreateProjectSettings GetDefaultProjectSettings();" on the Project class. Example usage:

Project.CreateAsync( Project.GetDefaultProjectSettings());

MaximilianGlas
Esri Contributor

Thanks Charlie, glad to hear.

0 Kudos