TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: scottcd on October 09, 2006, 06:23:36 PM

Title: angle
Post by: scottcd on October 09, 2006, 06:23:36 PM
I am getting lost trying to retrieve the angle between 2 points in degrees in the current UCS.

I have 0 degrees set to north and angles increase clockwise.

If I use (angle p1 p2) this returns the angle in radians with 0 degrees set to East and angles increasing anti-clockwise.

So far so good.

But how do I get the angle to be displayed relative to my UCS?

Is it something to do with the trans function?

Thanks for any advice..

Scott

Title: Re: angle
Post by: scottcd on October 09, 2006, 06:48:22 PM
I sorted it out.. it was the angtos function I needed..


Cheers

Scott
Title: Re: angle
Post by: CAB on October 09, 2006, 08:35:09 PM
Well it didn't take you long to sort it out. :-)

Welcome to the Swamp.