-
Book Overview & Buying
-
Table Of Contents
Programming ArcGIS 10.1 with Python Cookbook
By :
The arcpy.mapping module also has a ListTableViews() function that you can use to obtain a list of standalone tables that are contained within a map document. In this recipe, you will learn how to use the ListTableViews() function to create this list of tables.
In addition to providing the ability to generate a list of layers in a map document or data frame, the arcpy mapping module also provides a ListTableViews() function that generates a list of tables.
ListTableViews() only works with map document files and the data frames contained within. Layer files do not have the capability of holding tables.
Follow these steps to learn how to get a list of standalone tables in a map document:
Open c:\ArcpyBook\Ch3\Crime_Ch3.mxd with ArcMap.
Click on the Python window button from the main ArcMap toolbar.
Import the arcpy.mapping module:
import arcpy.mapping as mapping
Reference the currently active document (Crime_Ch3.mxd), and assign the reference...
Change the font size
Change margin width
Change background colour