We have a lisp routine that consistantly breaks and though I'd love to get rid of it it's used by many here at the company. Can anybody help me figure out what's wrong with it?
regarding Cannoscale error
it would crash if
(command "CANNOSCALE" "1 1/2\" = 1'-0\"")
that scale is not exisitng
not sure what this subroutine do, didnt really looked at the whole code
but apparently it runs after your CAnnoscale command
what you can do is check for the validity of the scale before running your CANNOSCALE command
(defun Chk_scale (scl)
scle (dictsearch (namedobjdict) "ACAD_SCALELIST")
(if (= 350 (car scle))
(wcmatch (cdr (assoc 300 (entget (cdr scle)))) scl))))
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.