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?
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
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.