## set extent (values in a list) 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 ## set rotation and scale df.rotation = rotation df.scale = scale
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.