Thanks guys - but are you sure about that ? I have a video demo of my teaching assistant writing that code manually and running it from pythonwin and an input box pops up- I am brand new to python and arcgis so not disputing you guys but I see it happening so just wondering. Here are our homework instructions directing us to do it that way also :Step 2: Replace Hard Coded Values With Dynamic ValuesReplace the hard-coded values with the arcpy.GetParameterAsText() function.�?� Save the FC2FC_HardCoded.py script to C:\usr\yourname\lab12\FC2FC.py.import arcpy, os.path�?� Modify the following variables to accept user-specified input.inFC = arcpy.GetParameterAsText(0)outFC = arcpy.GetParameterAsText(1)expression = arcpy.GetParameterAsText(2)fieldInfo = arcpy.GetParameterAsText(3)�?� Save the script.He does this manually in the video and immediately runs the script- I will see if I can post a screen shot
inFC = raw_input("Please enter parameter 0: ") outFC = raw_input("Please enter parameter 1: ") expression = raw_input("Please enter parameter 3: ") fieldInfo = raw_input("Please enter parameter 4: ")
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.