The +90 will place the tangent line on the right side of the input line (based on digitized direction). Or, for a "great" 1 liner: arcpy.CopyFeatures_management(, Click the line feature where you want the trace to end. T: (Label central point E and endpoints A, B, C, and D.) and make right angles. Tip: Press T to show the vertices of the feature you are tracing. T: (Draw perpendicular lines using the right angle template and a straightedge.) What do you see S: A right angle Two line segments and four right angles. Click the line feature you want to trace and move the pointer along the line feature to draw the construction line. You could use cursors to read the line geometries and write them to a new feature class. Click the tool drop-down arrow and choose Trace Line. Return arcpy.Polyline(arcpy.Array((midpoint.firstPoint, newpoint.firstPoint))) Newpoint = midpoint.pointFromAngleAndDistance(angle + 90, dist) You have now constructed a perpendicular bisector to. # get points immediately before and after midpointīefore = line.positionAlongLine(0.5-e, True)Īfter = line.positionAlongLine(0.5+e, True)ĭX = - ĭY = - After selecting the midpoint and the line segment, go to construct and select perpendicular line. Midpoint = line.positionAlongLine(0.5, True) ![]() '''creates a tangent line of length dist at line midpoint ![]() ![]() Based on answer, here's an approach that uses built-in methods on geometry objects.
0 Comments
Leave a Reply. |