Going back to this old post, I was wondering if a lisp could solve this issue, for example, to manually select certain blocks inside a model space and change the width of the polylines inside with a certain value.
I found this Lee Mac lisp, where he changes the width of all objects including blocks, which I tried and works fine. Although, I understand how he has done it, my knowledge regarding Autolisp is none, so I can't find myself a solution just to select some blocks and apply the changes to those, disregarding all the other objects, and apply the changes just to selections.
(defun c:test (/ *error* wid uFlag)
(vl-load-com)
;; Lee Mac ~ 15.01.10
(defun *error* (msg)
(and uFlag (vla-EndUndoMark doc))
(or (wcmatch (strcase msg) "*BREAK,*CANCEL*,*EXIT*")
(princ (strcat "\n** Error: " msg " **")))
(princ))
(setq doc (cond (doc) ((vla-get-ActiveDocument
(vlax-get-acad-object)))))
(initget 4)
(setq wid (cond ((getdist "\nSpecify New Width <0.0> : ")) (0.0)))
(setq uFlag (not (vla-StartUndoMark doc)))
(vlax-for blk (vla-get-Blocks doc)
(vlax-for obj blk
(if (eq "AcDbPolyline" (vla-get-Objectname obj))
(vla-put-ConstantWidth obj wid))))
(setq uFlag (vla-EndUndoMark doc))
(vla-regen doc acActiveViewport)
(princ))