Code Red > AutoLISP (Vanilla / Visual)
Create ARC with TAN-TAN-RAD
Peter2:
There is the standard command to create a circle with "tan - tan - rad". Someone who knows a solution to create an arc with "tan tan - rad"?
(Example with new yellow arc between red and green arc see attachment)
BIGAL:
Its a question that is often raised there are 4 possible solutions which is why TTR is close but then have to trim. In some 3rd party Civil software this was solved by asking for approximate new arc centre pt.
Just did something worked great drew a couple more arcs failed miserably, need to look into that math answer for 3 arcs.
kirby:
Hi Peter
Here is code that does just that, draw an arc transition between two arcs. It will not do a reverse curve (S curve), just curves that bulge in the same direction. Only uses arcs or circles as input, no polyarcs (but could be updated).
The workhorse is a routine that finds the intersection of 2 circles (which can be 2 points, a single point of tangency, or no intersections). The 'trick' is that radials of tangent arcs must pass through the centre points of both arcs/circles.
Old code clipped out of a larger pavement geometry library, but I did a cleanup, sprinkled lots of comments throughout and added a quick help routine that lists the commands.
Regards,
Kirby
tombu:
FILLET command set to [No trim] does that.
Option is controlled by the TRIMMODE (System Variable)
BIGAL:
tombu only works for certain 2 arc patterns. Was getting a internal answer rather than external.
Kirby I think your on the money was looking at a option of like a W arc, a S arc, C a arc arc arc as requested.
Would do a dcl image please choose style, need some time to play.
Have the advantage of VL using intersectwith for working out trim side of circle or arcs simplify the coding did have that working as 1st attempt for "W" style but tombu answer much simpler. Will work on the C option next as I am pretty sure code will be shorter, using VL is shorter then assoc.
A quick comment but may work out wrong for a S add diff to 1st arc subtract diff for 2nd arc draw circles get 2 point possible solution.
Navigation
[0] Message Index
[#] Next page
Go to full version