(Mar-11-2024, 12:21 AM)deanhystad Wrote: # is the start of a line comment in Python. Everything following # in the line is a comment. Don't depend on syntax highlighting.
The error message told you where the error happened.
Note the lack of a comment character in
Error:Traceback (most recent call last): File "D:/ArcPy_Ex/test.py", line 5, in <module> outfc = arcpy.GetParameterAsText(1) NameError: name 'arcpy' is not definedoutfc = arcpy.GetParameterAsText(1)
Thanks for the reply. As I posted later (the image I posted, can it be seen? ), it is seen differently and I woder, now, how I can see the code in the Python IDLE like it is seen here?