I need help BIG time
I have the following lsp to turn ON a day name layer in multiples files in a directory.
The stranger thing is that it works, however, only turn ON the layer on a few drawings within the directory others remain OFF.
First I thought, could be the name of the layer was too long? I changes to a shorter name without success.
Second I thought, maybe the reference file is referenced in a Relative Path? I changed it to Full path, without success.
If anyone be able to help me please, I have at least 1,000 drawing to go thru
(defun c:dton ( )
(LM:ODBX
(function
(lambda ( doc / lay )
(vlax-for lay (vla-get-layers doc)
(if (wcmatch (strcase (vla-get-name lay)) "*|SIGNED ON AUG 29 2013")
(vla-put-layeron lay :vlax-true)
)
)
)
)
nil t
)
(princ)
)
Thank you