Solved! Go to Solution.
[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]
[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]