How to add Radio Buttons to Python Script tool dialog?

المشرف العام

Administrator
طاقم الإدارة
I have 3 Point shapefiles for 3 species that contains the accession points of each. The user needs to specify only one species at a time. I need to write a script tool for adding the selected Point layer. How can i used the radio buttons in this case.. Important for my thesis work..

import arcpy mxd = arcpy.mapping.MapDocument("CURRENT") df = arcpy.mapping.ListDataFrames(mxd, "*")[0] addLayer = arcpy.mapping.Layer(r"D:\Academic\M.E_thesis\data\acc_point.lyr") arcpy.mapping.AddLayer(df, addLayer, "BOTTOM") The script above is for adding just one layer.. In my case, the user needs to specify what species to be added to TOC.. So, i need 3 radio buttons. Else, a dropdown list that automaticaaly displays the names of 3 species.



أكثر...
 
أعلى