<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Create fishnet in iterative model in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867136#M1475</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We haven't made any changes to the tool. This tool won't work the way you want in ModelBuilder. There is a plan to create a new similar tool - but there is no tentative time-frame yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you tried my Python script? This may be the only workaround comes to my mind.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Oct 2012 14:22:54 GMT</pubDate>
    <dc:creator>NobbirAhmed</dc:creator>
    <dc:date>2012-10-11T14:22:54Z</dc:date>
    <item>
      <title>Create fishnet in iterative model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867127#M1466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I wonder if anyone has any ideas on the following.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using Create Fishnet in an iterative model. The goal being to flip through all features in a feature class and create a fishnet from the bounding coordinates of each individual feature. Fishnet is fed from a feature layer denoted with the %n% keyword but the extents data does not update. The result is the same grid being created over and over again. Is there any way to ensure that the extents are being updated?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 18:52:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867127#M1466</guid>
      <dc:creator>deleted-user-qQeebl6UEQjh</dc:creator>
      <dc:date>2011-07-19T18:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create fishnet in iterative model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867128#M1467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well I gave up on out of the box and came up with the script below to create fishnets. I am hoping to keep this as an iterative model where this script is passed the current %n% value from the model. Can anyone suggest how/if it is possible to pass the %n% value into a script using sys.argv[]? Using 9.2. Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Import system modules&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import sys, string, os, arcgisscripting&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Create the geoprocessor object&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp = arcgisscripting.create()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.overwriteOutput = 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Set workspace&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.Workspace = "C:/CollapseTestModel.gdb"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;myNet = "C:/CollapseTestModel.gdb/Net03"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;myTemplate = "C:/CollapseTestModel.gdb/SelectBody__0"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dsc=gp.describe(myTemplate)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;extents = dsc.Extent&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;print extent&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.CreateFishnet_management(myNet,extents[0:17] + " " + extents[18:34],extents[0:17] + " 53", 0.000045, 0.000045, 50, 50, "#", "NO_LABELS", myTemplate)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;print gp.GetMessages()&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2011 18:34:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867128#M1467</guid>
      <dc:creator>deleted-user-qQeebl6UEQjh</dc:creator>
      <dc:date>2011-07-27T18:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create fishnet in iterative model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867129#M1468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I wonder if anyone has any ideas on the following.&lt;BR /&gt;&lt;BR /&gt;I am using Create Fishnet in an iterative model. The goal being to flip through all features in a feature class and create a fishnet from the bounding coordinates of each individual feature. Fishnet is fed from a feature layer denoted with the %n% keyword but the extents data does not update. The result is the same grid being created over and over again. Is there any way to ensure that the extents are being updated?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having this same problem! It appears, by looking through the log, that the extent is set before the file that sets the extent is fed into the fishnet tool. I'm thinking about trying to get the corners of the extent with minimum bounding geometry and feature vertices to point tools, but it might add several steps to the model.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 17:34:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867129#M1468</guid>
      <dc:creator>TrevorSelf</dc:creator>
      <dc:date>2011-12-16T17:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Create fishnet in iterative model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867130#M1469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Perhaps before Create Fishnet you can use Copy Features to copy a selected feature to a feature class or an in_memory feature class (if you don't need to save it); and then feed this feature class to the Template extent. I think this would make the extent update in each iteration.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 20:10:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867130#M1469</guid>
      <dc:creator>DanLee</dc:creator>
      <dc:date>2011-12-16T20:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create fishnet in iterative model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867131#M1470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for replying so quickly. I have tried this suggestion exactly. I have a separate model to iterate through a feature class and copy out individual features into their own feature classes, but the create fishnet tool ends up just creating many fishnets on top of each other (one for each feature in the geodatabase). When checking through the log, as the feature classes iterate, they are input into each iteration in the create fishnet tool, but the extents never update to the extents of each feature class&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 17:13:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867131#M1470</guid>
      <dc:creator>TrevorSelf</dc:creator>
      <dc:date>2011-12-21T17:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Create fishnet in iterative model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867132#M1471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The whole thing can be done in Python. Here is a sample code (not tested on 9.2):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcgisscripting
 
gp = arcgisscripting.create()
gp.overwriteOutput = 1

# input hard-coded but you can make it a script tool parameter to make it an interactive input.
in_fc = r"C:\temp\f.gdb\curvepoly"&amp;nbsp; # this polygon feature class has several polygons.
 
rows = gp.SearchCursor(in_fc)
row = rows.Next()

while row:
&amp;nbsp;&amp;nbsp;&amp;nbsp; feat = row.shape
&amp;nbsp;&amp;nbsp;&amp;nbsp; ext = feat.extent
&amp;nbsp;&amp;nbsp;&amp;nbsp; orig = str(ext.XMin) + " " + str(ext.YMin)
&amp;nbsp;&amp;nbsp;&amp;nbsp; yaxis = str(ext.XMin) + " " + str(ext.YMin + 100.00)
&amp;nbsp;&amp;nbsp;&amp;nbsp; opp_corner = str(ext.XMax) + " " + str(ext.YMax)
&amp;nbsp;&amp;nbsp;&amp;nbsp; print orig, yaxis, opp_corner
 
&amp;nbsp;&amp;nbsp;&amp;nbsp; out_fc = r"C:\temp\f.gdb\fishnetall_" + str(row.OBJECTID)
 
&amp;nbsp;&amp;nbsp;&amp;nbsp; result = gp.CreateFishnet_management(out_fc, orig, yaxis, "0", "0", "5", "8", opp_corner)
&amp;nbsp;&amp;nbsp;&amp;nbsp; print(gp.GetMessages())

&amp;nbsp;&amp;nbsp;&amp;nbsp; row = rows.Next()

del row, rows

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:47:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867132#M1471</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2021-12-12T10:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Create fishnet in iterative model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867133#M1472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Dan,&lt;BR /&gt;Thanks for replying so quickly. I have tried this suggestion exactly. I have a separate model to iterate through a feature class and copy out individual features into their own feature classes, but the create fishnet tool ends up just creating many fishnets on top of each other (one for each feature in the geodatabase). When checking through the log, as the feature classes iterate, they are input into each iteration in the create fishnet tool, but the extents never update to the extents of each feature class&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for letting me know. We have investigated this issue; there is indeed a bug in the tool that affects the extent update in iteration. If you can, please submit a change/fix request to Esri Support; we might get to it a bit quicker.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is no easy workaround. Hope you can use the script Nobbir provided to get through the process.&amp;nbsp; Sorry about the inconvenience.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 20:19:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867133#M1472</guid>
      <dc:creator>DanLee</dc:creator>
      <dc:date>2012-01-11T20:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create fishnet in iterative model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867134#M1473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Señor and Trevor,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's been a while; we will be looking into enhancements for the Create Fishnet tool. Both of you needed fishnets for individual features; could you describe why you want a fishnet per feature? What is the application/story?&amp;nbsp; Your use cases would help us understand the requirements and provide the right solutions. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have any additional criteria about creating fishnet, please let me know. I appreciate your time and input.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 23:22:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867134#M1473</guid>
      <dc:creator>DanLee</dc:creator>
      <dc:date>2012-07-18T23:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create fishnet in iterative model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867135#M1474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thank you for letting me know. We have investigated this issue; there is indeed a bug in the tool that affects the extent update in iteration. If you can, please submit a change/fix request to Esri Support; we might get to it a bit quicker.&lt;BR /&gt;&lt;BR /&gt;There is no easy workaround. Hope you can use the script Nobbir provided to get through the process.&amp;nbsp; Sorry about the inconvenience.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you already solve this problem? Or is there another way to workaround?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 06:16:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867135#M1474</guid>
      <dc:creator>ClemensHabsburg-Lothringen</dc:creator>
      <dc:date>2012-10-11T06:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Create fishnet in iterative model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867136#M1475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We haven't made any changes to the tool. This tool won't work the way you want in ModelBuilder. There is a plan to create a new similar tool - but there is no tentative time-frame yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you tried my Python script? This may be the only workaround comes to my mind.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 14:22:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867136#M1475</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2012-10-11T14:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create fishnet in iterative model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867137#M1476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There's a sample tool in the &lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/group.html?owner=ArcGISTeamAnalysis&amp;amp;title=Analysis%20and%20Geoprocessing%20Tool%20Gallery&amp;amp;content=all"&gt;Analysis and Geoprocessing Gallery&lt;/A&gt;&lt;SPAN&gt; that may do what you need: &lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=9398bd2232cb4c8490b0b05015364d28"&gt;http://www.arcgis.com/home/item.html?id=9398bd2232cb4c8490b0b05015364d28&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 15:26:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867137#M1476</guid>
      <dc:creator>DaleHoneycutt</dc:creator>
      <dc:date>2012-10-11T15:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create fishnet in iterative model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867138#M1477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Señor and Trevor,&lt;BR /&gt;&lt;BR /&gt;It's been a while; we will be looking into enhancements for the Create Fishnet tool. Both of you needed fishnets for individual features; could you describe why you want a fishnet per feature? What is the application/story?&amp;nbsp; Your use cases would help us understand the requirements and provide the right solutions. &lt;BR /&gt;&lt;BR /&gt;If you have any additional criteria about creating fishnet, please let me know. I appreciate your time and input.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am wanting to do this to create a nested hierarchical grid similar to the U.S. National Grid or Military Grid. So that I have a repeating 1-4 ( 2 * 2) grid for each cell at its next highest level in the nested hierarchy.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2012 10:39:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867138#M1477</guid>
      <dc:creator>MarkZweifler</dc:creator>
      <dc:date>2012-11-15T10:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create fishnet in iterative model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867139#M1478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As a non-Python guy I was able to devise a Model Builder workaround that involved coverting each iterated&amp;nbsp; selected polygon to a raster subdivided into pixels at the desired size. Then through a series of steps converting that raster back to a polygon layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;see screenshot below &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]19338[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2012 14:31:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867139#M1478</guid>
      <dc:creator>MarkZweifler</dc:creator>
      <dc:date>2012-11-15T14:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create fishnet in iterative model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867140#M1479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had a different solution to get around the not-so-helpful extent&amp;nbsp; handling in ModelBuilder iteration:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used Calculate Value to extract the extent and then split that result to calculate the other parameters for the Create Fishnet tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here are two of the Calculate Value setups and how I put the model together. Note I added some grace area around the extent (hence the complicated math):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]19389[/ATTACH][ATTACH=CONFIG]19390[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]19391[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Nov 2012 01:25:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867140#M1479</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2012-11-17T01:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create fishnet in iterative model</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867141#M1480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear Esri member,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you so much for this code, I exactly used this , but still I have problem with this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'str' object has no attribute 'XMin'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;could you help me?I want to build a model for creat fishnet for several raster files ..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nedaaa&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2013 13:13:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867141#M1480</guid>
      <dc:creator>nedamohammadi1</dc:creator>
      <dc:date>2013-03-21T13:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: parsing extent: 'str' object has no attribute 'XMin'</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867142#M1481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I exactly used this , but still I have problem with this error:&lt;BR /&gt;'str' object has no attribute 'XMin' &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry about that, here's an example of the code that does not work (it worked at 9.x):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
def Origin(ext):
&amp;nbsp; ext = ext.split()
&amp;nbsp; return "%s %s" % (ext[0], ext[1])
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since extent is now handled as a full-fledged object, you can fix this code by either converting it to a string:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
def Origin(ext):
&amp;nbsp; ext = str(ext).split()
&amp;nbsp; return "%s %s" % (ext[0], ext[1])
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or requesting the extent object properties directly (probably the best way):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
def Origin(ext):
&amp;nbsp; return "%s %s" % (ext.XMin, ext.YMin)
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:47:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/create-fishnet-in-iterative-model/m-p/867142#M1481</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-12T10:47:45Z</dc:date>
    </item>
  </channel>
</rss>

