In this video, Jennifer Harrison shows you how to find the necessary help for list functions in ArcMap. Learn how to figure out what list functions are available and how to get help on those list functions. Also, learn how to find broken links in a map do
- [Instructor] When first writing a Python script…to interact with the GIS world,…the ArcGIS desktop help is essential.…I'm gonna write a script to make a list…of all the data frames in a map document.…While writing the script, I'll make use…of the help system in ArcMap…to make sure that I completely understand…how to use the objects, methods, and properties.…I've got a new script open here in IDLE,…and I've already added the comment block and the pseudocode.…I've also already imported arcpy…and created the MapDocument object to point…to one of my maps using arcpy.mapping.MapDocument.…
Since I've already done this,…the code can access contents of the map document…with some of the list functions.…I need to get a list of the data frames in a map document.…Let's look at the ArcMap help…to see what list function I would use.…So I'll open the help,…and I'll just search for list data frames.…Here's the ListDataFrames arcpy.mapping function.…
Notice that this list function needs to know…what map document you want to work on,…
- Writing and running Python scripts in IDLE
- Making scripts flexible with variables
- Commenting scripts
- Manipulating string data
- Object-oriented programming in Python
- Creating loops
- Reading and writing text files
- Capturing input at runtime
- Documenting your scripts
Skill Level Beginner
1. Python for ArcGIS Basics
2. Strings, Numbers, and Variables
Work with numeric values5m 22s
3. Syntax Rules
4. Manipulating Strings
5. Object-Oriented Programming
6. Using Loops
7. Generate Log Files
8. Input at Run Time
9. Help Documents
Documenting a script1m 59s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.