Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/a/r/arcpy-HEAD/townlayers.py   arcpy(Download)
# the map document, dataframe, town feature class and town group layer
mxd = arcpy.mapping.MapDocument(r'C:/dev/python/arcpy/mxd/towns.mxd')
df = arcpy.mapping.ListDataFrames(mxd, 'Towns')[0]
fc = 'C:/dev/python/arcpy/shapefile/towns.shp'

src/a/r/arcapi-HEAD/arcapi.py   arcapi(Download)
    if not re.findall(".jpe?g", out_file, flags=re.IGNORECASE): out_file += ".jpg"
    mxd = arcpy.mapping.MapDocument(template)
    if not arcpy.Exists(x):
        x = arcpy.CopyFeatures_management(x, arcpy.CreateScratchName('tmp', workspace = 'in_memory')).getOutput(0)
def currentMxd():
    """Return handle to the CURRENT map document.
    ***Can be used only in ArcMap session***
    return arcpy.mapping.MapDocument("CURRENT")

src/a/r/arcpy-HEAD/layer-sources.py   arcpy(Download)
import arcpy, sys, os
mxd = arcpy.mapping.MapDocument(sys.argv[1])
df = arcpy.mapping.ListDataFrames(mxd)[0]

src/a/r/arcpy-HEAD/pages2pdf.py   arcpy(Download)
# get map document
mxd = arcpy.mapping.MapDocument(sys.argv[1])
# check for page-name field 'page'

src/a/g/agol-helper-HEAD/source/agol/admin.py   agol-helper(Download)
            mxd_path = os.path.join(sciptPath,mxd_path)
        mxd = mapping.MapDocument(mxd_path)
        sddraftFolder = env.scratchFolder + os.sep + "draft"
        sdFolder = env.scratchFolder + os.sep + "sd"