Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Getangle with two getpoints

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
kpennell
330 Views, 3 Replies

Getangle with two getpoints

I thought this could do it:

 

 (setq rotate1 (getpoint))
 (setq rotate2 (getpoint))
 (setq ang (getangle rotate1 rotate2))
 (princ ang)

 

Or this:

 

 (setq rotate1 (getpoint))
 (setq rotate2 (getpoint))
 (setq ang (getangle "(rotate1 rotate2)))
 (princ ang)

 

Or this:

 

 (setq rotate1 (getpoint))
 (setq rotate2 (getpoint))
 (setq ang (getangle (list rotate1 rotate2)))
 (princ ang)

 

Do I have to do the trig calculations?

 

Thanks

KP

3 REPLIES 3
Message 2 of 4
pbejse
in reply to: kpennell

(setq ang (angle rotate1 rotate2))

Message 3 of 4
kpennell
in reply to: kpennell

Seriously?  Bloody hell.

 

Sorry for using up the thread space.

Message 4 of 4
pbejse
in reply to: kpennell


@kpennell wrote:

Seriously?  Bloody hell.

 

Sorry for using up the thread space.


Really really Smiley Happy

 

For more complex angle codes try the search button and type  "angle, you will see loeads for solutions

 

Cheers

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost