describeObject = Describe(r"c:\ModelWork.gdb\ModelOutput")
extentObject = describeObject.extent
xMin = extentObject.XMin
## set extent df = arcpy.mapping.ListDataFrames(mxd, theFrame)[0] newExtent = df.extent newExtent.XMin = extent[0] newExtent.YMin = extent[1] newExtent.XMax = extent[2] newExtent.YMax = extent[3] df.extent = newExtent del newExtent ## set extent a second time - v10 bug workaround df2 = arcpy.mapping.ListDataFrames(mxd, theFrame)[0] anotherExtent = df2.extent anotherExtent.XMin = extent[0] anotherExtent.YMin = extent[1] anotherExtent.XMax = extent[2] anotherExtent.YMax = extent[3] df2.extent = anotherExtent del anotherExtent
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.