<?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: from polyline startpoint, endpoint, turn angles of 0,90,180,270 with distance in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/from-polyline-startpoint-endpoint-turn-angles-of-0/m-p/793611#M1691</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I looked in the link. I didn't see anything that jumped out at me for what I'm trying to do. I did look in the API, but didn't find anything. But with names like searchcursor, I would of never looked under that to do some type of selection set. It all new.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jun 2019 14:34:30 GMT</pubDate>
    <dc:creator>johncoon</dc:creator>
    <dc:date>2019-06-27T14:34:30Z</dc:date>
    <item>
      <title>from polyline startpoint, endpoint, turn angles of 0,90,180,270 with distance</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/from-polyline-startpoint-endpoint-turn-angles-of-0/m-p/793609#M1689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New to ESRI and New to Python.&lt;/P&gt;&lt;P&gt;I'm trying to find out&amp;nbsp;if it's possible to turn angles of 0,90,180,270,&amp;nbsp;from a&amp;nbsp;defined line / polyline .startpoint and .endpoints&amp;nbsp;with distance&amp;nbsp;based on whatever the line&amp;nbsp;direction is. Using the direction of the line /&amp;nbsp;polyline&amp;nbsp;object, either start to end or end to start to define what end I want to use, and what direction I'm going.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking to be able to do Three things, first, use the cursor tool to loop thru all the, in my case (centerlines) layer&amp;nbsp;and draw&amp;nbsp;new polylines, see attached figure. Getting started I can hard code the angle and distance&amp;nbsp;to draw. in the end,&lt;/P&gt;&lt;P&gt;I'd like to get those values&amp;nbsp;from a field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, the same draw function, but this time, I&amp;nbsp;want to select a single (centerline)&amp;nbsp;by some name field&amp;nbsp;and be able to draw&amp;nbsp;from a selected end. either .startpoint or .endpoint. with a supplied distance and create something like what is in the attached pdf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Third, same as number 2, but the .startpoint and .endpoints locations or direction would come from a text file.&lt;/P&gt;&lt;P&gt;Read text file, startpoint .endpoint, distance to go, angle to use, create new point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;{startpoint}, {endpoint},{Distance}, {create new point}, draw polyline from points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my first attempt&amp;nbsp;with Python.&amp;nbsp;First week. It looks pretty powerful, Hopefully someone&amp;nbsp;can point me to some samples that do similar tasks, so&amp;nbsp;I can&amp;nbsp;get stated&amp;nbsp;automating a few tasks. Hopefully&amp;nbsp;what I'm trying to do makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;John&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2019 12:52:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/from-polyline-startpoint-endpoint-turn-angles-of-0/m-p/793609#M1689</guid>
      <dc:creator>johncoon</dc:creator>
      <dc:date>2019-06-27T12:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: from polyline startpoint, endpoint, turn angles of 0,90,180,270 with distance</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/from-polyline-startpoint-endpoint-turn-angles-of-0/m-p/793610#M1690</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;‌ and &lt;A href="https://community.esri.com/space/2051"&gt;Analysis&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2019 14:05:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/from-polyline-startpoint-endpoint-turn-angles-of-0/m-p/793610#M1690</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-06-27T14:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: from polyline startpoint, endpoint, turn angles of 0,90,180,270 with distance</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/from-polyline-startpoint-endpoint-turn-angles-of-0/m-p/793611#M1691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I looked in the link. I didn't see anything that jumped out at me for what I'm trying to do. I did look in the API, but didn't find anything. But with names like searchcursor, I would of never looked under that to do some type of selection set. It all new.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2019 14:34:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/from-polyline-startpoint-endpoint-turn-angles-of-0/m-p/793611#M1691</guid>
      <dc:creator>johncoon</dc:creator>
      <dc:date>2019-06-27T14:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: from polyline startpoint, endpoint, turn angles of 0,90,180,270 with distance</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/from-polyline-startpoint-endpoint-turn-angles-of-0/m-p/793612#M1692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so I'm guessing that python doesn't have a method to turn an angle off the start or end point of a line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jul 2019 20:38:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/from-polyline-startpoint-endpoint-turn-angles-of-0/m-p/793612#M1692</guid>
      <dc:creator>johncoon</dc:creator>
      <dc:date>2019-07-02T20:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: from polyline startpoint, endpoint, turn angles of 0,90,180,270 with distance</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/from-polyline-startpoint-endpoint-turn-angles-of-0/m-p/793613#M1693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is&amp;nbsp;basically what I want to do. see attached pdf also. this is for Autocad, I need to do the same in ESRI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set objWCS = ThisDrawing.UserCoordinateSystems.Add(dblOrigin, dblXVector, dblYVector, "WCS")&lt;BR /&gt;ThisDrawing.ActiveUCS = objWCS&lt;/P&gt;&lt;P&gt;On Error GoTo errhndlr&lt;/P&gt;&lt;P&gt;point1 = ThisDrawing.Utility.GetPoint(, "Select Runway Centerline at First Threshold Point,")&lt;BR /&gt;point2 = ThisDrawing.Utility.GetPoint(point1, "Select Runway Centerline at Second Threshold Point")&lt;/P&gt;&lt;P&gt;Dim insertionPnt10(0 To 2) As Double&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; insertionPnt10(0) = point1(0) 'x&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; insertionPnt10(1) = point1(1) 'y&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; insertionPnt10(2) = 0 'z&lt;/P&gt;&lt;P&gt;Dim insertionPnt11(0 To 2) As Double&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; insertionPnt11(0) = point2(0) 'x&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; insertionPnt11(1) = point2(1) 'y&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; insertionPnt11(2) = 0 'z&lt;/P&gt;&lt;P&gt;Dim rw1, rw2, rwdist, rwhalfdist As Double&lt;BR /&gt;rw1 = point1(0) - point2(0)&lt;BR /&gt;rw2 = point1(1) - point2(1)&lt;BR /&gt;rwdist = Sqr(rw1 ^ 2 + rw2 ^ 2)&lt;BR /&gt;rwhalfdist = rwdist / 2&lt;BR /&gt;Module1.rwhalfdist = rwhalfdist&lt;/P&gt;&lt;P&gt;Dim dblRot As Double&lt;BR /&gt;Dim pi As Double&lt;BR /&gt;pi = 3.14159265358979&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;pt1 = insertionPnt10&lt;BR /&gt;&amp;nbsp;pt2 = insertionPnt11&lt;/P&gt;&lt;P&gt;Module1.pt1 = pt1&lt;BR /&gt;Module1.pt2 = pt2&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;'WBC:replace with this line&lt;BR /&gt;&amp;nbsp;dblRot = ThisDrawing.Utility.AngleFromXAxis(pt1, pt2)&lt;/P&gt;&lt;P&gt;newpt9000 = ThisDrawing.Utility.PolarPoint(pt1, (pi + dblRot), -0#)&lt;BR /&gt;newpt9001 = ThisDrawing.Utility.PolarPoint(pt1, (pi + dblRot), -thresoffset)&lt;BR /&gt;newpt9002 = ThisDrawing.Utility.PolarPoint(pt1, (pi + dblRot), -thresoffset + -150)&lt;BR /&gt;'left side bars&lt;BR /&gt;newpt9003 = ThisDrawing.Utility.PolarPoint(newpt9001, (pi/2 + dblRot), 5.75)&lt;BR /&gt;newpt9004 = ThisDrawing.Utility.PolarPoint(newpt9001, ((pi/2 + dblRot), 11.5)&lt;BR /&gt;newpt9005 = ThisDrawing.Utility.PolarPoint(newpt9002, ((pi/2 + dblRot), 11.5)&lt;BR /&gt;newpt9006 = ThisDrawing.Utility.PolarPoint(newpt9002, ((pi/2 + dblRot), 5.75)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jul 2019 21:12:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/from-polyline-startpoint-endpoint-turn-angles-of-0/m-p/793613#M1693</guid>
      <dc:creator>johncoon</dc:creator>
      <dc:date>2019-07-02T21:12:53Z</dc:date>
    </item>
  </channel>
</rss>

