[INDENT]#set fc to a stored layer extlyrDESC = gp.describe(fc) xmin = extlyrDESC.Extent.XMin ymin = extlyrDESC.Extent.YMin xmax = extlyrDESC.Extent.XMax ymax = extlyrDESC.Extent.YMax ### sets the actual extent of the Geoprocessor object strExt = str("%f " % xmin + "%f " % ymin + "%f " % xmax + "%f" % ymax) gp.Extent = strExt[/INDENT]
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.