Code Red => AutoLISP (Vanilla / Visual) => Topic started by: venkat241 on February 06, 2013, 06:51:39 AM
Title: Help : 2 centered compound curve lisp ---
Post by: venkat241 on February 06, 2013, 06:51:39 AM
Dear All,
Please help in writing a lisp program for 2 centered compound curve. Ref. image attached.
Input by selecting first tangent AI and 2nd tangent BI and giving R1 and R2 values.
Output Arcs T1t and tT2.
Advanced Thanks & Regards
M V Rao
:-P
Title: Re: Help : 2 centered compound curve lisp ---
Post by: irneb on February 06, 2013, 07:52:11 AM
Do you want someone to write it for you or do you want some help on trying to do so yourself?
Tip: The trick is to use trigonometry and/or pythagoras or to draw construction lines using the polar function and finding their intersections.
Title: Re: Help : 2 centered compound curve lisp ---
Post by: Gasty on February 06, 2013, 08:36:11 AM
Hi,
You don't need to solve any Pythagoras:
0.- Put the origin at "O" 1.- Get the slope of each tangent line, say m1, m2 2.- The slope of the radius line for each tangent will be -1/m1; -1/m2, so you get the angles Delta1 y Delta2 3.- The point "t" will be at (0, R2) 4.- The point T2 will be at (R2*cos(Delta2),R2*Sin(Delta2)) 5.- The same for T1 (need some sign change) 6.- Translate the result to real origin
Gaston Nunez
Title: Re: Help : 2 centered compound curve lisp ---
Post by: ribarm on February 06, 2013, 10:11:49 AM
Title: Re: Help : 2 centered compound curve lisp ---
Post by: venkat241 on February 08, 2013, 11:06:14 PM
Dear Sir,
I have checked the lisp but i couldn't understand the ray concept.
Rgds
MVRAO
Title: Re: Help : 2 centered compound curve lisp ---
Post by: bchapman on February 09, 2013, 12:47:14 AM
I agree with op lol... that lisp isn't friendly for the non-math majors
Title: Re: Help : 2 centered compound curve lisp ---
Post by: venkat241 on February 09, 2013, 08:24:13 AM
Dear All,
If anyone could help by writing a lisp program, i will be very grateful for him.
I don't know how to write lisp program.
Thanks in Advance,
MVRAO
Title: Re: Help : 2 centered compound curve lisp ---
Post by: kirby on February 11, 2013, 10:46:30 AM
Hi
Here is an older routine that should do what you want. It is more of a Civil Engineering approach. I've added lots of comments, but let me know if you have any questions.
Regards, Kirby in sunny Winnipeg, Manitoba, Canada
Title: Re: Help : 2 centered compound curve lisp ---
Post by: kulfi on March 29, 2015, 05:01:25 AM
Please can i gete the image where i can easily how to make the selection according to the lisp program. thanks