teknomatika Posted October 31, 2012 Share Posted October 31, 2012 Why is it that sometimes works and sometimes does not work? What contributes to this happen? I intend to apply the routine to change the scale factor of linetypes. (defun c:ls (/ ns a n i b1 c d b2) (setvar "cmdecho" 0) (setq ns (getreal "\nNew Scale: ")) (setq a (ssget)) (setq n (sslength a)) (setq i 0) (repeat n (setq b1 (entget (ssname a i))) (setq i (1+ i)) (setq c (assoc 48 b1)) (setq d (cons (car c) ns)) (setq b2 (subst d c b1)) (entmod b2) ) (princ) ) (prompt "\nType: LS") Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.