Author Topic: crazy autocad calculator  (Read 2916 times)

0 Members and 1 Guest are viewing this topic.

vladimirzm

  • Guest
crazy autocad calculator
« on: December 14, 2008, 03:19:07 PM »
(setq p1 '(0.0 0.0 0.0) p2 '(5.0 5.0 5.0) n 1)

then

(c:cal "1*vec(p1,p2)") --> retunrs (5.0 5.0 5.0) that's ok
(c:cal "n*vec(p1,p2)") --> retunrs (450.0 450.0 450.0) !!!

what's wrong?

pkohut

  • Guest
Re: crazy autocad calculator
« Reply #1 on: December 14, 2008, 03:36:08 PM »
Bug, works fine in '04, but not in '08.

vladimirzm

  • Guest
Re: crazy autocad calculator
« Reply #2 on: December 14, 2008, 03:59:17 PM »
thnx pkohut but I have just learned:
the calculator uses by default values for this variables
n=north=90
e=east=0
s=south=270
w=west=180

i really didn't know that.  :? i thought it was a bug too
i have to use another variable.

highflyingbird

  • Bull Frog
  • Posts: 415
  • Later equals never.
Re: crazy autocad calculator
« Reply #3 on: December 23, 2008, 09:38:32 AM »
yes, it's real confuse.
I tried the letter from "A" to “z",just "e" "n" "s" "w" have default values.
I am a bilingualist,Chinese and Chinglish.

Andrea

  • Water Moccasin
  • Posts: 2372
Re: crazy autocad calculator
« Reply #4 on: December 23, 2008, 09:54:02 AM »
Code: [Select]
(c:cal (strcat (rtos n 2 8) "* vec (p1,p2)"))
Keep smile...