A way to get what you want in ModelBuilder is to calculate a float value from your index using the Calculate Value tool.[ATTACH=CONFIG]22467[/ATTACH]Another approach could be to try Iterate Multi-value instead of For. Calculate Value has a parameter called Data Type that can cast the output into the data type your tool requires. Often you can just enter %element name% in your tool dialog within ModelBuilder as well.A similar approach would work with your other parameter. The way to nest loops in model buider to put one model inside another:Integrating a model within a model
I have made a workflow in Model Builder (with topo-to-raster interpolation) and i want to iterate this with a "for"-loop beween the values 0 to 1 within 0.1 steps (=11 loops overall). But it is not possible for me to set the incremet (By Value) to 0.1 or any other decimal number. Do anybody have a workaround solution for this problem?
I also tried to iterate over the "maximum iteration number" field in the topo-to-raster parameter settings, but it seems to be not possible to connect this with a "for"-loop.
import numpy for num in numpy.arange(0,1.1,0.1): print num
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.