Visibility Ratio calculated by Skyline Graph

192
2
12-09-2019 08:21 AM
SatoshiHirabayashi
New Contributor

When you run the Skyline Graph tool in 3D Analyst Tools the visibility ratio is displayed in the Results window. When you run the same tool in a stand-alone Python script is there any way to obtain the visibility ratio in the Python script?

0 Kudos
2 Replies
Peter_Klingman
Esri Regular Contributor

ArcGIS Pro3D

0 Kudos
KhalidDuri1
Esri Contributor

Hi Satoshi, we have an enhancement request to provide that information in the return of the tool's execution in Python. For now, you can use string manipulation to extract the value from the result of arcpy.GetMessages():

float(arcpy.GetMessages().split('degrees is ')[1].split('.\n')[0])