The following pseudocode was used to accomplish the process. I am not including the actual code for obvious reasons, but this should show the overarching thought process behind populating a .txt file from attribute data.
START
Modules and Classes
imported
Workspace set
Overwrite settings
changed to overwrite existing files
Working shapefile
variable set
Search Cursor used to
select FID, Shape, and NAME attributes
Text document created
for data to be written in
Iteration through rows
started
Vertex variable created, set to 0
Iteration through arrays and points started
Vertex variable changed to add 1
Variable created as a string of text to
write to file
Result printed in Interactive window to
error check
Data written to .txt file
Text file closed
Variables row and cursor
are deleted
END
No comments:
Post a Comment