Here I am, cool and fresh! :kewl:
Thanks guys for helping me out on this on. I was really mad yesterday!
Zibidi, why are you overriding the dimstyle?
I am not, it's AutoCAD that's doing it. Overrides are evil
Anyway, I found another potential problem. That being that if the DimStyle's DIMCLRT value is the default of BYBLOCK (color 0) then it will not be in the (entget) list....which means there's nothing to modify with (subst), so that Style's Text color will not be revised per your code. Just thought you might want to know.
For once I am lucky. The DIMCLRT color is forced to "yellow" (who the < > set them to yellow in the first place?)
Yes, I'm pretty sure that zibidi's intent is to change all of the Dimension Text to be White.
Yes. Currently the text appears yellow. The only little thing I want to do is turn it into white, that's it. Overrides or not I don't care. The only little thing I want to do is change a color from yellow to white.
this is why I quit fooling with dimensions along time ago.....
For example, he is currently dealling with past overrides and the only way to deal with them is make more overides today. Then lets say 6 months in the future he needs to make more changes. Then at that time he is dealing with the overrides prior to today, today's overrides and whatever he has to do in the future.
I am not trying to create new overrides, all I want to achieve is change the text color, now if autocad does this by creating overrides or some other cryptic behavior, that is not my fault. Changing an object's attribute should be the simplest thing on earth either by directly assigning its value (bad practice) or by using a setter method to which we can pass a parameter and takes care of setting the value accordingly.
What I am really trying to do, is change the text color as if I were doing it by hand in the dimstyle editor, it's as simple as that. Type: "dimstyle", select the dimstyle to edit, click "modify", then choose the "text" tab, select the white color, click "ok", then repeat for all dimstyles, click close, and all the dimstyles have now white text, no overrides or that kind of crap, no animal has been harmed during the process, and the environment has been preserved.
Now why this process cannot be "easily" mimicked in autolisp, that is another question... :pissed: