API for proportional renderer 'Refresh values' command

498
3
05-24-2019 03:05 PM
MaxMax2
Occasional Contributor II

Is there API for 'Refresh values' command of proportional renderer?

I'm interested in such API since this command automatically updates histogram, corrects symbol sizes and redraws symbols. If I can achieve this behavior with the current API please let me know.

0 Kudos
3 Replies
by Anonymous User
Not applicable

Hello Max, you can use featureLayer.RecalculateRenderer() for this.

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

0 Kudos
MaxMax2
Occasional Contributor II

Hello Christopher,

I already tried this method but it throws exception: Error HRESULT E_FAIL has been returned from a call to a COM component.

0 Kudos
CharlesMacleod
Esri Regular Contributor

Max,

Unfortunately, it looks like ProportionalRenderer Recalculate is not currently supported in the public API. We will add recalc support in 2.5. I will update the API reference for 2.4. Thanks for bringing this to our attention.

0 Kudos