For today's lab we created a search cursor with a nested for loop that created a text file which listed the vertices for all of the points in a list of 25 feature classes. We began by using the open feature to create a new text file in the results folder. To create the results in the txt file, we first created an empty search cursor, and then we started with a basic for loop that began by referencing the object ID number for the feature classes. We then created a separate listing for each of the vertices by either using the get Part module or via an additional nested loop that referenced the points in each part of the feature. At the end of the function, we deleted the rows and search cursor, and closed out the txt file.
Comments
Post a Comment