too few arguments

too few arguments

Anonymous
Not applicable
2,538 Views
2 Replies
Message 1 of 3

too few arguments

Anonymous
Not applicable

I'm pretty sure that my problem lies in my atan located in the polar calculations section but i can't figure out what it is XD. any help would be great. Suggestions of how to optimize are also welcomed

0 Likes
Accepted solutions (1)
2,539 Views
2 Replies
Replies (2)
Message 2 of 3

SeeMSixty7
Advisor
Advisor
Accepted solution

You are missing your distance value for the polar function.

 

(setq p2 (polar p1 (+ angl (dtr (- 360 (atan (/ (/ id 2) lt))))) DIST)

)

 

Goods luck,

 

Message 3 of 3

rkmcswain
Mentor
Mentor
I suggest using the VLIDE to do your lisp editing. It contains tools to help find things like this.

Your (first) error is on this line:

; warning: too few arguments: (POLAR P1 (+ ANGL ( ... )))

You only have two arguments in the POLAR function and it requires three. It looks like misplaced parenthesis upon first glance.


R.K. McSwain     | CADpanacea | on twitter