Persisting Add-In Data Into Pro Project

655
4
12-10-2019 11:24 AM
MartinTyberg
New Contributor II

Hi,

In ArcObjects, it is possible to save add-in data directly into an MXD and to retrieve that when the MXD is loaded again. Is it possible in the ArcGIS Pro SDK to persist add-in data into an ArcGIS Pro project and later retrieve it when the project is loaded again?

Thanks,

Martin

Tags (1)
0 Kudos
4 Replies
UmaHarano
Esri Regular Contributor

With Pro, you can add content and images to an add-in and access them.

Here is a wiki page that discusses this: ProGuide: Content and Image Resources

0 Kudos
MartinTyberg
New Contributor II

Hi Uma,

Thanks. However, I need to save dynamic content that is generated when a user interacts with a dialog that my add-in raises. I'm thinking the best way to persist data is to retrieve the project's file geodatabase, create a new table in it, and store the data there.

Thanks,

Martin

0 Kudos
Wolf
by Esri Regular Contributor
Esri Regular Contributor

Hi Martin,

 Or you can implement 'custom project settings' as shown here: https://github.com/esri/arcgis-pro-sdk/wiki/ProGuide-Custom-settings

- Wolf

0 Kudos
MartinTyberg
New Contributor II

Hi Wolf,

That's exactly what I was looking for. Thanks alot for pointing me to it.

Martin

0 Kudos