laptop and a wrench

Bug

Surface Volume 3D analyst tool generates one less output than specified when executed within a submodel that contains a for iterator.

Zuletzt veröffentlicht: August 25, 2014 ArcGIS for Desktop
Bug-ID-Nummer NIM080284
EingereichtApril 20, 2012
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS for Desktop
Gefunden in Version10.0
BetriebssystemWindows OS
Betriebssystemversion7
StatusNon-Reproducible

Zusätzliche Informationen

Not reproducible at 10.1

Workaround

Use a script tool and Python based for loop to accomplish this task. Code is as follows:import arcpyimport osarcpy.env.overwriteOutput = Truedef calStorageVolume(SURFACE, REF_PLANE, FOR_VALUES, PRJ_DIR, FILE_NAME): start, end, step = FOR_VALUES txtList = [] for value in range(start, end + 1, step): OUT_TEXT = os.path.join(PRJ_DIR, FILE_NAME + str(value) + ".txt") arcpy.SurfaceVolume_3d(SURFACE, OUT_TEXT, REF_PLANE, value, 1) txtList.append(OUT_TEXT) return ";".join(txtList) def main(): in_surface = arcpy.GetParameterAsText(0) ref_plane = arcpy.GetParameterAsText(1) for_values = [int(arcpy.GetParameterAsText(2)), int(arcpy.GetParameterAsText(3)), int(arcpy.GetParameterAsText(4))] proj_dir = arcpy.GetParameterAsText(5) file_name = arcpy.GetParameterAsText(6) arcpy.SetParameter(7, calStorageVolume(in_surface, ref_plane, for_values, proj_dir, file_name)) if __name__ == "__main__": main()

Schritte zur Reproduzierung

Bug-ID: NIM080284

Software:

  • ArcGIS for Desktop

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln