TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: jlogan02 on December 17, 2020, 12:11:23 PM
Title:
error with (08 . "1 1/2\" = 1'-0\"")
Post by:
jlogan02
on
December 17, 2020, 12:11:23 PM
I'm getting this error with (08 . "1 1/2\" = 1'-0\"")
Error: AutoCAD variable setting rejected: CANNOSCALE "1\001/2\" = 1'-0\""
I've tried several iterations with no luck.
I also can't remember what the backward slash is doing.
Code - Auto/Visual Lisp:
[Select]
(
if
(
setq
sca
(
cdr
(
assoc
(
getvar
'dimscale
)
'
(
(
01 .
"1:1"
)
(
02 .
"6
\"
= 1'-0
\"
"
)
(
04 .
"3
\"
= 1'-0
\"
"
)
(
08 .
"1 1/2
\"
= 1'-0
\"
"
)
;;this is wrong
(
12
.
"1
\"
= 1'-0
\"
"
)
(
16
.
"3/4
\"
= 1'-0
\"
"
)
(
24
.
"1/2
\"
= 1'-0
\"
"
)
(
48
.
"1/4
\"
= 1'-0
\"
"
)
(
96
.
"1/8
\"
= 1'-0
\"
"
)
)
)
)
)
(
setvar
'cannoscale sca
)
(
prompt
"
\n
DIMSCALE does not correspond to Annotation Scale."
)
)
Title:
Re: error with (08 . "1 1/2\" = 1'-0\"")
Post by:
CincyJeff
on
December 17, 2020, 12:43:05 PM
My scale reads "1-1/2\" = 1'-0\"", with the hyphen.
Title:
Re: error with (08 . "1 1/2\" = 1'-0\"")
Post by:
jlogan02
on
December 17, 2020, 01:13:22 PM
Quote from: CincyJeff on December 17, 2020, 12:43:05 PM
My scale reads "1-1/2\" = 1'-0\"", with the hyphen.
That's the ticket!
Guess I didn't try everything.
Thanks again.