Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
crazy autocad calculator
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: crazy autocad calculator (Read 2976 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?
Logged
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.
Logged
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.
Logged
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.
Logged
I am a bilingualist,Chinese and Chinglish.
Andrea
Water Moccasin
Posts: 2372
WWW
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)"))
Logged
Keep smile...
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
crazy autocad calculator