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?
Solved! Go to Solution.
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])
ArcGIS Pro 3D
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])