How Can I Batch Edit Layers within Multiple DWG's?

I have a large number of .dwg files. 
In each file are numerous layers identical to every other .dwg file
Is there a simple way I can batch edit all .dwg files to alter the properties of a common layer?
Specifically to turn all layers to colour 253, to turn some layers invisible and unlock others? 
Currently I am doing this manually but I've 1000's of .dwgs.

Can this be achieved within BricsCAD or a third party freeware app?

Thanks in advance!

Comments


  • Hello KH,

    You can try a free 30-day version of our CADPower software that has a tool called CP_BATCHPROCESS which is used for exactly this purpose.

    http://www.4d-technologies.com/cadpower/manual/miscellaneous_tools.htm#BATCHPROCESS

    CP_BATCHPROCESS asks for a folder (or multiple nested folders) and creates a BAT file that opens BricsCAD with the specified profile that will call BricsCAD and do the necessary processing (via a small LISP). The Lisp part has to be written by you, but the BAT file is generated using this CADPower tool.

    I can hep you with these two if you can share your DWG, and specify which are the layers you want to turn on, off etc.

    This is the Lisp you may need to run.

    (defun c:LayFix()
    (command "._Layer" "_Color" "253" "*" "_Thaw" "0" "_On" "0" "_Freeze" "_Unlock" "")
    (prin1)
    )


    Best Regards
    Rakesh Rao
    Smarter .dwg CAD

This discussion has been closed.