Hi,
I am looking for a LISP routine to look for all Polylines on a layer and change the Linetype Scale from 0.0003 to 0.0006. I know that this is easy enough to do using QSELECT but I have to do this regularly so if it could be done in a LISP it would save me a lot of time.
I have tried putting together my own code below which deletes the 0.0003 linetype scales but instead of deleting the lines I would like it to change them to 0.0006. My code might be going down the completely wrong route but I thought I would give it a go before asking!
Code:
(defun c:test (/ ss i sn l) (vl-load-com)
(if (setq ss (ssget "X" '((410 . "Model")(48 . 0.0003)(0 . "LWPOLYLINE")(8 . "0"))))
(repeat (setq i (sslength ss))
(setq sn (ssname ss (setq i (1- i))))
(entdel sn)
)
)
(vl-load-com)
(setq doc (vla-get-ActiveDocument
(vlax-get-acad-object)))
(princ)
)