Jump to content

How to use set deflection(right click while drawing lines) through arcpy?


kron

Recommended Posts

The set deflection option can be used to create a segment at a +-angle from a an existing line segment. This is exactly what i need but with the ability to run it several times in a loop.

In this case the vertex of the starting point is selected and the reference line segment is selected and 'set deflection' option is used to constrain the line to be drawn in a particular direction.

bearing distance to line is very static. you have to specify every parameter. can somebody guide me to use it dynamically? so i can change the directions values while iterating.

Link to comment
Share on other sites

first thing on my mind is:

1 - convert end of your line to point - (arcpy.management.featurevertiestopoints)

2 - add points based on function(length, deflection) which based on last point on OID list shape@XY it calculates new XY

     maybe you can do it with tables only

3 - create a line based on points created in last step and then add it to first line you had

4 - do step 2 and 3 over and over again till end of your list

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.

Disable-Adblock.png

 

If you enjoy our contents, support us by Disable ads Blocker or add GIS-area to your ads blocker whitelist