<<"TJARONIK" <> wrote:
cmdactive is so that the routine will continue to the next attribute. If you notice that at the end of the example you showed me the color command is activated and it sets the current color of the current layer to bylayer. not supposed to be part of the routine. not that it is a bad thing but if a user has the color set it will reset the color to bylayer.>>
Not sure if we're talking about the same thing here. It is NOT possible to set a layer's color setting to "Bylayer". I think what you meant to say was set the Current color to Bylayer. As far as being part of the routine, it was in your original code--I just changed the code to try and fix the problem and improve ease of use. The second while loop does NOTHING and as such, it is not needed. The first while loop will not end until after the attedit command is finished.
I think my original code should do what you're looking for.
<<I guess in a nut shell all I want to be able to do is change a revision block that has the attributes forced to yellow to a color of bylayer without having to burst the block and change the color to bylayer and be able to run it from a script. I believe I have over 700 drawings to do this to. So, you can see my need for some automation.

>>
Oh yes! I am definitely a believer in automation when possible. This is a perfect example of requiring it.
Recently I had to change the total number of sheets and the date (someone had put these items in each individual sheet rather than in the border xref). I wrote a routine that went through, searched for the date and total sheet count and changed them.