<?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: python script not working in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-script-not-working/m-p/875316#M4876</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the  code… thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def createInternalParallelLines():&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;import libraries&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;                import arcpy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;set input/output parameters&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;                polyFC = arcpy.GetParameterAsText(0)        # input polygons&lt;/P&gt;&lt;P&gt;                outParallel = arcpy.GetParameterAsText(1)   # output parallel lines&lt;/P&gt;&lt;P&gt;                lineSpacing = arcpy.GetParameterAsText(2)   # line spacing&lt;/P&gt;&lt;P&gt;                buffDist = arcpy.GetParameterAsText(3)      # inner buffer distance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;parse numbers from parameters&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;                lineSpaceNum = float(lineSpacing.split(' ')[0])&lt;/P&gt;&lt;P&gt;                buffNum = float(buffDist.split(' ')[0])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;establish spatial reference&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;                desc = arcpy.Describe(polyFC)&lt;/P&gt;&lt;P&gt;                SR = desc.spatialReference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;set overwrite environment&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;                arcpy.env.overwriteOutput = True&lt;/P&gt;&lt;P&gt;                arcpy.env.outputCoordinateSystem = SR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                parallels = []&lt;/P&gt;&lt;P&gt;                                &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;create hull rectangle to establish a rotated area of interest&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;                                coordSplit = row[0].hullRectangle.split(' ')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                                &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;collect corner coordinates&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;                                coordList = arcpy.Array([arcpy.Point(coordSplit[0],coordSplit[1]),arcpy.Point(coordSplit[2],coordSplit[3]),arcpy.Point(coordSplit[4],coordSplit[5]),arcpy.Point(coordSplit[6],coordSplit[7]),arcpy.Point(coordSplit[0],coordSplit[1])])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;create lines from hull rectangle&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;                currentLines = []&lt;/P&gt;&lt;P&gt;                for pointNum in range(0,4):&lt;/P&gt;&lt;P&gt;                                arcpy.Array()&lt;/P&gt;&lt;P&gt;                                hullRecLine = arcpy.Polyline(arcpy.A&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;loop through each input shape&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;                for row in arcpy.da.SearchCursor(polyFC, ["SHAPE@"], spatial_reference=SR):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                                &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;create inner buffer&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;                                polyBuff = row[0].buffer(buffNum * -1)&lt;/P&gt;&lt;P&gt;rray())&lt;/P&gt;&lt;P&gt;                                currentLines.append(hullRecLine)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;compare first and second line to determine if first line is short or long&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;                firstLong = 0&lt;/P&gt;&lt;P&gt;                if currentLines[0].length &amp;lt; currentLines[1].length:&lt;/P&gt;&lt;P&gt;                                firstLong = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;calculate number of points needed along short axis&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;                numPoints = int(math.floor(currentLines[firstLong].length/lineSpaceNum))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;create and join points to create parallel lines&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;                for point in range(1,numPoints+1):&lt;/P&gt;&lt;P&gt;                                shortPoint1 = currentLines[firstLong].positionAlongLine(lineSpaceNum*point)&lt;/P&gt;&lt;P&gt;                                shortPoint2 = currentLines[firstLong + 2].positionAlongLine(currentLines[firstLong + 2].length - (lineSpaceNum*point))&lt;/P&gt;&lt;P&gt;                                parallel = arcpy.Polyline(arcpy.Array(), SR)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;intersect parallel lines with buffer&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;        parallelBuff = parallel.intersect(polyBuff,2)&lt;/P&gt;&lt;P&gt;        parallels.append(parallelBuff)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;write geometries to disk&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;                arcpy.CopyFeatures_management(parallels, outParallel)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;add to map&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;                mxd = arcpy.mapping.MapDocument("CURRENT")&lt;/P&gt;&lt;P&gt;                dataFrame = arcpy.mapping.ListDataFrames(mxd, "*")[0]&lt;/P&gt;&lt;P&gt;                addLayer = arcpy.mapping.Layer(outParallel)&lt;/P&gt;&lt;P&gt;                arcpy.mapping.AddLayer(dataFrame, addLayer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                del row&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Oct 2018 19:18:04 GMT</pubDate>
    <dc:creator>devarsimajumder2</dc:creator>
    <dc:date>2018-10-17T19:18:04Z</dc:date>
    <item>
      <title>python script not working</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-script-not-working/m-p/875313#M4873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to find out why the python script that I wrote isnt working. I am trying to count&amp;nbsp; the number of stairs in a stairwell. I have two shapefiles and i wrote the script to run auto and process how many stairs there are.&amp;nbsp; if someone can help me with this I would appreciate it thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 15:08:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-script-not-working/m-p/875313#M4873</guid>
      <dc:creator>devarsimajumder2</dc:creator>
      <dc:date>2018-10-17T15:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: python script not working</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-script-not-working/m-p/875314#M4874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sharing with &lt;A href="https://community.esri.com/space/2145"&gt;Python&lt;/A&gt;‌ since this looks to be ArcPy and not ArcGIS API for Python.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please paste the code (not a screenshot) and use &lt;A href="https://community.esri.com/blogs/dan_patterson/2016/08/14/script-formatting?sr=search&amp;amp;searchId=bdf45239-640f-4c59-b3e5-bbc4c8db4364&amp;amp;searchIndex=0"&gt;/blogs/dan_patterson/2016/08/14/script-formatting?sr=search&amp;amp;searchId=bdf45239-640f-4c59-b3e5-bbc4c8db4364&amp;amp;searchIndex=0&lt;/A&gt;‌.&amp;nbsp; Also, provide the error and traceback if you are getting an error.&amp;nbsp; If you are seeing unexpected results, describe what you are seeing and what you expect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 18:57:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-script-not-working/m-p/875314#M4874</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-10-17T18:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: python script not working</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-script-not-working/m-p/875315#M4875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here is the code below. again im not too&amp;nbsp; familar with&amp;nbsp; python&amp;nbsp; so&amp;nbsp; i am asking for some help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def createInternalParallelLines():&lt;BR /&gt; # import libraries&lt;BR /&gt; import arcpy&lt;/P&gt;&lt;P&gt;# set input/output parameters&lt;BR /&gt; polyFC = arcpy.GetParameterAsText(0) # input polygons&lt;BR /&gt; outParallel = arcpy.GetParameterAsText(1) # output parallel lines&lt;BR /&gt; lineSpacing = arcpy.GetParameterAsText(2) # line spacing&lt;BR /&gt; buffDist = arcpy.GetParameterAsText(3) # inner buffer distance&lt;/P&gt;&lt;P&gt;# parse numbers from parameters&lt;BR /&gt; lineSpaceNum = float(lineSpacing.split(' ')[0])&lt;BR /&gt; buffNum = float(buffDist.split(' ')[0])&lt;/P&gt;&lt;P&gt;# establish spatial reference&lt;BR /&gt; desc = arcpy.Describe(polyFC)&lt;BR /&gt; SR = desc.spatialReference&lt;/P&gt;&lt;P&gt;# set overwrite environment&lt;BR /&gt; arcpy.env.overwriteOutput = True&lt;BR /&gt; arcpy.env.outputCoordinateSystem = SR&lt;/P&gt;&lt;P&gt;parallels = []&lt;BR /&gt; # create hull rectangle to establish a rotated area of interest&lt;BR /&gt; coordSplit = row[0].hullRectangle.split(' ')&lt;/P&gt;&lt;P&gt;# collect corner coordinates&lt;BR /&gt; coordList = arcpy.Array([arcpy.Point(coordSplit[0],coordSplit[1]),arcpy.Point(coordSplit[2],coordSplit[3]),arcpy.Point(coordSplit[4],coordSplit[5]),arcpy.Point(coordSplit[6],coordSplit[7]),arcpy.Point(coordSplit[0],coordSplit[1])])&lt;/P&gt;&lt;P&gt;# create lines from hull rectangle&lt;BR /&gt; currentLines = []&lt;BR /&gt; for pointNum in range(0,4):&lt;BR /&gt; arcpy.Array([coordList.getObject(pointNum),coordList.getObject(pointNum+1)])&lt;BR /&gt; hullRecLine = arcpy.Polyline(arcpy.A&lt;BR /&gt; # loop through each input shape&lt;BR /&gt; for row in arcpy.da.SearchCursor(polyFC, ["SHAPE@"], spatial_reference=SR):&lt;/P&gt;&lt;P&gt;# create inner buffer&lt;BR /&gt; polyBuff = row[0].buffer(buffNum * -1)&lt;BR /&gt;rray([coordList.getObject(pointNum),coordList.getObject(pointNum+1)]))&lt;BR /&gt; currentLines.append(hullRecLine)&lt;/P&gt;&lt;P&gt;# compare first and second line to determine if first line is short or long&lt;BR /&gt; firstLong = 0&lt;BR /&gt; if currentLines[0].length &amp;lt; currentLines[1].length:&lt;BR /&gt; firstLong = 1&lt;/P&gt;&lt;P&gt;# calculate number of points needed along short axis&lt;BR /&gt; numPoints = int(math.floor(currentLines[firstLong].length/lineSpaceNum))&lt;/P&gt;&lt;P&gt;# create and join points to create parallel lines&lt;BR /&gt; for point in range(1,numPoints+1):&lt;BR /&gt; shortPoint1 = currentLines[firstLong].positionAlongLine(lineSpaceNum*point)&lt;BR /&gt; shortPoint2 = currentLines[firstLong + 2].positionAlongLine(currentLines[firstLong + 2].length - (lineSpaceNum*point))&lt;BR /&gt; parallel = arcpy.Polyline(arcpy.Array([shortPoint1.centroid,shortPoint2.centroid]), SR)&lt;/P&gt;&lt;P&gt;# intersect parallel lines with buffer&lt;BR /&gt; parallelBuff = parallel.intersect(polyBuff,2)&lt;BR /&gt; parallels.append(parallelBuff)&lt;/P&gt;&lt;P&gt;# write geometries to disk&lt;BR /&gt; arcpy.CopyFeatures_management(parallels, outParallel)&lt;/P&gt;&lt;P&gt;# add to map&lt;BR /&gt; mxd = arcpy.mapping.MapDocument("CURRENT")&lt;BR /&gt; dataFrame = arcpy.mapping.ListDataFrames(mxd, "*")[0]&lt;BR /&gt; addLayer = arcpy.mapping.Layer(outParallel)&lt;BR /&gt; arcpy.mapping.AddLayer(dataFrame, addLayer)&lt;/P&gt;&lt;P&gt;del row&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 19:07:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-script-not-working/m-p/875315#M4875</guid>
      <dc:creator>devarsimajumder2</dc:creator>
      <dc:date>2018-10-17T19:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: python script not working</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-script-not-working/m-p/875316#M4876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the  code… thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def createInternalParallelLines():&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;import libraries&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;                import arcpy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;set input/output parameters&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;                polyFC = arcpy.GetParameterAsText(0)        # input polygons&lt;/P&gt;&lt;P&gt;                outParallel = arcpy.GetParameterAsText(1)   # output parallel lines&lt;/P&gt;&lt;P&gt;                lineSpacing = arcpy.GetParameterAsText(2)   # line spacing&lt;/P&gt;&lt;P&gt;                buffDist = arcpy.GetParameterAsText(3)      # inner buffer distance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;parse numbers from parameters&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;                lineSpaceNum = float(lineSpacing.split(' ')[0])&lt;/P&gt;&lt;P&gt;                buffNum = float(buffDist.split(' ')[0])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;establish spatial reference&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;                desc = arcpy.Describe(polyFC)&lt;/P&gt;&lt;P&gt;                SR = desc.spatialReference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;set overwrite environment&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;                arcpy.env.overwriteOutput = True&lt;/P&gt;&lt;P&gt;                arcpy.env.outputCoordinateSystem = SR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                parallels = []&lt;/P&gt;&lt;P&gt;                                &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;create hull rectangle to establish a rotated area of interest&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;                                coordSplit = row[0].hullRectangle.split(' ')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                                &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;collect corner coordinates&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;                                coordList = arcpy.Array([arcpy.Point(coordSplit[0],coordSplit[1]),arcpy.Point(coordSplit[2],coordSplit[3]),arcpy.Point(coordSplit[4],coordSplit[5]),arcpy.Point(coordSplit[6],coordSplit[7]),arcpy.Point(coordSplit[0],coordSplit[1])])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;create lines from hull rectangle&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;                currentLines = []&lt;/P&gt;&lt;P&gt;                for pointNum in range(0,4):&lt;/P&gt;&lt;P&gt;                                arcpy.Array()&lt;/P&gt;&lt;P&gt;                                hullRecLine = arcpy.Polyline(arcpy.A&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;loop through each input shape&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;                for row in arcpy.da.SearchCursor(polyFC, ["SHAPE@"], spatial_reference=SR):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                                &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;create inner buffer&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;                                polyBuff = row[0].buffer(buffNum * -1)&lt;/P&gt;&lt;P&gt;rray())&lt;/P&gt;&lt;P&gt;                                currentLines.append(hullRecLine)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;compare first and second line to determine if first line is short or long&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;                firstLong = 0&lt;/P&gt;&lt;P&gt;                if currentLines[0].length &amp;lt; currentLines[1].length:&lt;/P&gt;&lt;P&gt;                                firstLong = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;calculate number of points needed along short axis&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;                numPoints = int(math.floor(currentLines[firstLong].length/lineSpaceNum))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;create and join points to create parallel lines&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;                for point in range(1,numPoints+1):&lt;/P&gt;&lt;P&gt;                                shortPoint1 = currentLines[firstLong].positionAlongLine(lineSpaceNum*point)&lt;/P&gt;&lt;P&gt;                                shortPoint2 = currentLines[firstLong + 2].positionAlongLine(currentLines[firstLong + 2].length - (lineSpaceNum*point))&lt;/P&gt;&lt;P&gt;                                parallel = arcpy.Polyline(arcpy.Array(), SR)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;intersect parallel lines with buffer&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;        parallelBuff = parallel.intersect(polyBuff,2)&lt;/P&gt;&lt;P&gt;        parallels.append(parallelBuff)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;write geometries to disk&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;                arcpy.CopyFeatures_management(parallels, outParallel)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;add to map&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;                mxd = arcpy.mapping.MapDocument("CURRENT")&lt;/P&gt;&lt;P&gt;                dataFrame = arcpy.mapping.ListDataFrames(mxd, "*")[0]&lt;/P&gt;&lt;P&gt;                addLayer = arcpy.mapping.Layer(outParallel)&lt;/P&gt;&lt;P&gt;                arcpy.mapping.AddLayer(dataFrame, addLayer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                del row&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 19:18:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-script-not-working/m-p/875316#M4876</guid>
      <dc:creator>devarsimajumder2</dc:creator>
      <dc:date>2018-10-17T19:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: python script not working</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-script-not-working/m-p/875317#M4877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Follow your other post&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/222977-arcpy-scripting-error-question"&gt;https://community.esri.com/thread/222977-arcpy-scripting-error-question&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and use the code formatting link in there.&lt;/P&gt;&lt;P&gt;There are other unaddressed questions as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 19:56:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-script-not-working/m-p/875317#M4877</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-10-17T19:56:42Z</dc:date>
    </item>
  </channel>
</rss>

