I want to save some custom project settings (see ProGuide Custom settings · Esri/arcgis-pro-sdk Wiki · GitHub ). When I manually save the project, the function "OnWriteSettingsAsync()" is called. However, when I programmatically save the project using "Project.Current.SaveAsync()", the function "OnWriteSettingsAsync()" is not called.
Is there a workaround for this?
Thanks, Barbara
Solved! Go to Solution.
This could be the problem: when you change your custom settings make sure you set the Project to reflect a dirty status with: Project.Current.SetDirty (true);
Hi Barbara
I modified the sample project referenced in that wiki page to save a project using the SaveAsync method. The OnWriteSettingsAsync method was called for me.
Is there anything specific about how you are calling SaveAsync?
Thanks
Uma
This could be the problem: when you change your custom settings make sure you set the Project to reflect a dirty status with: Project.Current.SetDirty (true);