I have 2000+ drawings that have either the layer state "LMAN_DWF" or "DWF". I want all of them to read "DWF" for scripting purposes. Does anyone know of a LSIP routine that will go into a drawing and change rename a layerstate if it is named incorreclty, but do nothing if it is named correctly?
Does Layer State "DWF" exist?
If Yes, skip file and move on to next file
If No, does Layer State "LMAN_DWF" exist?
if Yes Rename Layer State to "DWF"
If No, skip file and move to next file.
Or a LSIP routine that can simply dump a list of all drawings in a directory that contain "LMAN_DWF" as a layer state. I could then use that list to do a simple script to change the layer state names on those specific files.
Check this out , ...
(defun c:Test nil (if (layerstate-has "LMAN_DWF") (layerstate-rename "LMAN_DWF" "DWF") ) (princ) )
Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.