Jump to content

Won't work


TunzaGibbo

Recommended Posts

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) "")

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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"

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...