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
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
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.