Jump to content
TunzaGibbo

Won't work

Recommended Posts

TunzaGibbo

Would anyone know why this line won't work?

Pt1 ang1 & dist1 are established

command line error is looking for the first point

 

Thank you

 

(command "_.line" (polar Pt1 (+ ang1 (dtr 9o)) 13) (polar ang1 dist1) "")

Share this post


Link to post
Share on other sites
marko_ribar

Where is reference point here :

 

(polar ??? ang1 dist1)

 

(dtr) sub function must be loaded, I suggest :

 

(dtr 90) = (cvunit 90 "degree" "radian")

 

 

BTW. Whenever you have command call that involves points input, preferable is that you specify "_non" or "_none" osnap before point spesifications...

Share this post


Link to post
Share on other sites
Lee Mac

You also have "9o" instead of "90":

(dtr 9o)

I would suggest writing your code using a font which demarcates zeroes using lines through the "0" (such as Consolas) to avoid recurrence of this mistake.

 

Please use a more descriptive thread title in future.

Share this post


Link to post
Share on other sites
FranknBeans

9o should be 90 ?

Share this post


Link to post
Share on other sites
TunzaGibbo

Thank you all very much for the feedback.

I must have looked at that line of code 100 times and never spotted the problem with "9o"

Share this post


Link to post
Share on other sites
BIGAL

Yeah like the others instant 9o

 

(/ pi 2.0) or (dtr 90) or (setq a90 (/ pi 2.0)) if you need to use angle 90 a lot.
(polar pt1 a90 dist)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×