I would like to create with code something similar to this: https://pro.arcgis.com/en/pro-app/latest/help/mapping/exploratory-analysis/interactive-viewshed.htm
Using code I can read parameters from file and control the process beter.
I found the Viewshed class that looks like the class I need.
There are no examples I could find.
I could set the Camera properties and the Viewshed properties, but I cannot connect it to any MapView.
The MapView property is read-only. It is null when I run my code and no viewshed is created on screen.
There should be a way to define it but I cannot find it.
I connect my camera into the map (Camera camera = MapView.Active.Camera) then I just updated the properties (x,y, etc) but it did not help.
Thanks