(DEFUN C:P252 ()
(setq S2 (ssget "_X" (list (cons 0 "*POLYLINE")
(cons -4 ">")
(cons 40 0.0))) )
(command "Change" S2 "" "p" "c" 252 "")
(princ)
)
(defun c:PL-ALL-252 ( / doc )
(vlax-for block (vla-get-blocks (setq doc (vla-get-activedocument (vlax-get-acad-object))))
(if (eq :vlax-false (vla-get-isxref block))
(vlax-for obj block
(if (eq "AcDbPolyline" (vla-get-objectname obj))
(vl-catch-all-apply 'vla-put-color (list obj 252))
)
)
)
)
(vla-regen doc acallviewports)
(princ)
)
(vl-load-com) (princ)
(> (vla-get-constantwidth obj 0.0))
Should be:(> (vla-get-constantwidth obj) 0.0)
That polyline has a different widths at start and at end of some segments.Yes, I do understand that. I meant that it is strange on a fundamental level: An object has a property, but requesting the value of that property results in an error.