check if Data Driven Pages is enabled via Python

330
1
11-22-2010 03:04 PM
CosminTana
New Contributor
How can you check if Data Driven Pages is enabled?

The "MapDocument" class has no property where you could test (e.g. mxd.DDP=True) nor does is it have any function (like mxd.Supports('DDP').

Thanks, for the fast response and the following answer.
0 Kudos
1 Reply
JasonScheirer
Occasional Contributor III
if not hasattr(mxd, 'dataDrivenPages'):
arcpy.AddError("No data driven pages enabled.")