Timeline for GetParameterAsText() error in python script
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 11, 2012 at 16:08 | vote | accept | BBG_GIS | ||
May 16, 2011 at 11:06 | comment | added | Rob Clark | No - when you set the data type when you add the script to the toolbox. You do this before you're able to run the tool. See this link - refer to step 3 - help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/… | |
May 16, 2011 at 10:42 | comment | added | BBG_GIS | i can't set the data type when i have this problem . the script has an error . | |
May 16, 2011 at 10:33 | comment | added | Rob Clark | Sounds like the object passing in from the tool is incorrect. When you created the tool in your toolbox did you set the data type as FeatureClass in the Parameters dialog? | |
May 16, 2011 at 10:28 | comment | added | BBG_GIS | when i use 'print featureclass' i see nothing but when i print the featureclass word i see ' ' characters . | |
May 16, 2011 at 10:18 | comment | added | Rob Clark | What is the output from the print statement though? What string do you get in the console? | |
May 16, 2011 at 10:12 | comment | added | BBG_GIS | i don't have any problem with : featureClass = arcpy.GetParameterAsText(0) print featureClass | |
May 16, 2011 at 9:34 | history | answered | Rob Clark | CC BY-SA 3.0 |