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]
  1.    (if
  2.             (setq sca
  3.                 (cdr
  4.                     (assoc (getvar 'dimscale)
  5.                        '(
  6.                             (01 . "1:1")
  7.                             (02 . "6\" = 1'-0\"")
  8.                             (04 . "3\" = 1'-0\"")
  9.                             (08 . "1 1/2\" = 1'-0\"");;this is wrong
  10.                             (12 . "1\" = 1'-0\"")
  11.                             (16 . "3/4\" = 1'-0\"")
  12.                             (24 . "1/2\" = 1'-0\"")
  13.                             (48 . "1/4\" = 1'-0\"")
  14.                             (96 . "1/8\" = 1'-0\"")
  15.                         )
  16.                     )
  17.                 )
  18.             )
  19.             (setvar 'cannoscale sca)
  20.             (prompt "\nDIMSCALE does not correspond to Annotation Scale.")
  21.         )
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
My scale reads "1-1/2\" = 1'-0\"", with the hyphen.

That's the ticket!

Guess I didn't try everything.

Thanks again.