ILayerExtensions in ArcGIS Pro SDK

2284
3
Jump to solution
03-11-2016 03:01 AM
MickeyO_Neil
New Contributor III

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

Reply
0 Kudos
1 Solution

Accepted Solutions
MickeyO_Neil
New Contributor III

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

Reply
0 Kudos
3 Replies
MickeyO_Neil
New Contributor III

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

Reply
0 Kudos
JeremyWright
Esri Regular Contributor
Reply
0 Kudos
MickeyO_Neil
New Contributor III

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

Reply
0 Kudos