Does arcpy.mapping module allow you to run tools on layers within current mxd?

692
1
07-08-2011 10:40 AM
CrystalCarreon
New Contributor
I am currently working on ArcMap v9.2 (I know...we are upgrading to 10 very soon) and I am having an issue running tools on layers within a current map document from a python script. For example, I want to use the select by attribute tool within a python script and have it display the selection within the current map document. Is this something I can do using the arcpy.mapping module or will I need to use VBA and/or vb.net?

Any help is much appreciated!
Crystal
Tags (2)
0 Kudos
1 Reply
TerrySilveus
Occasional Contributor III
use...
mxd = mapping.MapDocument('Current')

then everything done with mxd var will be for the Current map document
0 Kudos