Originally Posted by
gbgonzalez
Version: ADT2006 SP?
Problem:
Finding automated solution to updating the layer key style in existing drawings for over 2 thousand files. I chose to go this route, perhaps I shouldn't have.
Need to place revision clouds on layers that include addenda information. Currently the available layers are "A-anno-revs". We need A-anno-Revc-000A for Addendum A, A-anno-Revc-000B for Addendum B and so fourth. This is for placing the revision clouds with tool palettes I have created/ modified from the ADT standard tool palettes. It works fine for all new drawing, but not for existing drawings as they already have a layer key style in these existing files that have different Layer Keys (KS). We are using Project navigator so I tried using that to update files, but we went to lunch while it went thru the 2200 plus files and came back to the C++ error. I tried it on a smaller project and that imported the new KS, but didn't set it as current. So, that still makes the user have to go to Open dwg menu> Dwg setup> set as default> Apply and finally hit OK. I would like to find a script or lisp routine that could open all drawings, set the desired KS as current, save a close the file, move on to the next one and repeat step 1. Any advise will be greatly appreciated!