- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello All,
I am looking for a code that will automatically draw site triangles at every radius of a polyline (closed or not), the radii will also have different values every time. Right now I am drawing these all manually and I know this can be automated. I would take a crack at it myself since it really is just spawning lines at certain points but I just don't know how to get said points in a coherent sequence. The existing lines will not always exactly match the tangent of the start / end points of each radii like I have in this example, I only need the new triangle to do this. I have attached a before and after picture for what I am looking for along with a short video of how I am going about drawing these manually every time. I imagine the code would go along these lines:
-Evaluate polyline and identify every radius.
-Starting at the first one, identify start and end points of said radius.
-Find intersecting point of a theoretical perpendicular line coming from each point (to match tangent of said radius).
-Draw two lines each starting from intersecting point directly towards start and end of radius points with a length of 70.
-Find theoretical points on each line offset length of 10 starting from intersecting point.
-Draw 2 lines from each of these points going to the end points of each 70 line already created.
-Move on to next radius.
I appreciate any help!
Solved! Go to Solution.