Select to view content in your preferred language

ILayerExtensions in ArcGIS Pro SDK

3120
3
Jump to solution
03-11-2016 03:01 AM
MickeyO_Neil
Regular Contributor

Hello,

I'm writing an Extension for ArcGIS Pro. This Extension is creating special Layers which has to be recognised after saving and loading an aprx-File.

In ArcObjects I used the ILayerExtensions and stored a unique String in the Layer to identify it after loading a MXD.

What equivalent do you recommend for ArcGIS Pro? Is there a new/better way to store Data in a Layer or APRX-File?

Thank you for your Help.

Cheers

Mickey

0 Kudos
1 Solution

Accepted Solutions
MickeyO_Neil
Regular Contributor

I have found a workaround:

That's how you store data in the Project-Settings:

https://github.com/esri/arcgis-pro-sdk/wiki/ProGuide-Custom-settings#step-6-implement-the-module-cla...

This way you even can store JSON or XML strings in the APRX-File.

Furthermore you can use the URI Property of a layer as a unique identifier:

https://pro.arcgis.com/en/pro-app/sdk/api-reference/index.html#topic11759.html

View solution in original post

0 Kudos
3 Replies
MickeyO_Neil
Regular Contributor

Who should I contact for help? I really need a solution to this problem.

0 Kudos
JeremyWright
Esri Regular Contributor
0 Kudos
MickeyO_Neil
Regular Contributor

I have found a workaround:

That's how you store data in the Project-Settings:

https://github.com/esri/arcgis-pro-sdk/wiki/ProGuide-Custom-settings#step-6-implement-the-module-cla...

This way you even can store JSON or XML strings in the APRX-File.

Furthermore you can use the URI Property of a layer as a unique identifier:

https://pro.arcgis.com/en/pro-app/sdk/api-reference/index.html#topic11759.html

0 Kudos