0 Members and 1 Guest are viewing this topic.
(vlax-for eachLayer acLayers (if (eq (wcmatch (strcase (vla-get-name eachLayer)) "*A-ANNO-SEAL")) (vla-put-freeze eachLayer :vlax-true) ) )
(vlax-for eachLayer acLayers (if (wcmatch (strcase (vla-get-name eachLayer)) "*A-ANNO-SEAL") (vla-put-freeze eachLayer :vlax-true) ) )
Please note that in AutoCAD 2015, you cannot use a pattern like "*A-ANNO-SEAL" as it is treated the same as "*", which I learned the hard way yesterday. The * must be in the middle or at the end of the string only.
Quote from: cmwade77 on May 29, 2014, 04:42:10 PMPlease note that in AutoCAD 2015, you cannot use a pattern like "*A-ANNO-SEAL" as it is treated the same as "*", which I learned the hard way yesterday. The * must be in the middle or at the end of the string only.I cannot reproduce this behavio(u)r