This LISP was written by LEE MAC to help me change all linetype scale for enity in blocks & nested blocks.
This LISP will affect the whole drawing.
Can someone help me to incorporate a selection options (window & picking) for this LISP?
(defun c:lts ( / doc scl )
(initget 6)
(if (setq scl (getreal "\nSpecify new linetype scale: "))
(vlax-for blk (vla-get-blocks (setq doc (vla-get-activedocument (vlax-get-acad-object))))
(if (= :vlax-false (vla-get-isxref blk))
(vlax-for obj blk
(if (and (vlax-write-enabled-p obj) (vlax-property-available-p obj 'linetypescale t))
(vla-put-linetypescale obj scl)
)
)
)
)
)
(vla-regen doc acallviewports)
(princ)
)