Original User: thomson2000
I want the value of the iterate and the row count export to a txt file
I export the Modelbuilder to a python script
This is the code
# ---------------------------------------------------------------------------
# test_iteratie_export_value.py
# Created on: 2012-12-18 21:25:42.00000
# (generated by ArcGIS/ModelBuilder)
# Description:
# ---------------------------------------------------------------------------
# Import arcpy module
import arcpy
# Load required toolboxes
arcpy.ImportToolbox("Model Functions")
# Local variables:
l_GBKN_mut = "l_GBKN_mut"
Blad1_ = "N:\\arcgis\\Model builder_test_iteratie_field value.xls\\Blad1$"
l_GBKN_mut_Layer__value_ = "l_GBKN_mut_Layer_%value%"
# Process: Iterate Field Values
arcpy.IterateFieldValues_mb(Blad1_, "waarde", "String", "true", "false", "0")
# Process: Make Feature Layer
arcpy.MakeFeatureLayer_management(l_GBKN_mut, l_GBKN_mut_Layer__value_, "\"LKICODE\" = 'B01' AND \"PRECISIE\" ='%value%'", "", "OBJECTID OBJECTID VISIBLE NONE;Shape Shape VISIBLE NONE;LKICODE LKICODE VISIBLE NONE;OBJECTTYPE OBJECTTYPE VISIBLE NONE;ZICHTBAARH ZICHTBAARH VISIBLE NONE;GEFIATTEER GEFIATTEER VISIBLE NONE;INWINNING INWINNING VISIBLE NONE;STATUS STATUS VISIBLE NONE;LINKS LINKS VISIBLE NONE;RECHTS RECHTS VISIBLE NONE;OPNAMEDATU OPNAMEDATU VISIBLE NONE;BRON BRON VISIBLE NONE;PRECISIE PRECISIE VISIBLE NONE;IDEALISATI IDEALISATI VISIBLE NONE;BETROUWBAA BETROUWBAA VISIBLE NONE;mutatie mutatie VISIBLE NONE;Mcode Mcode VISIBLE NONE;Shape_Length Shape_Length VISIBLE NONE")
# Process: Get Count
arcpy.GetCount_management(l_GBKN_mut_Layer__value_)
I know that I must change de parameters and alsu change the code of iterate
But HOW CAN I DO THAT
[ATTACH=CONFIG]20043[/ATTACH][ATTACH=CONFIG]20044[/ATTACH]