PDA

View Full Version : Change object colors



fthorne
2008-09-15, 02:24 PM
I have some Blocks in Model Space that were brought in and are Green in Color. I have some leaders and notes in Paper Space that were done in Yellow color. I want to Shade them all back to Color 8 so that the items of interest and concern at the moment are more prominent. I do not want to BURST the Blocks and or the Leaders. It there a way to force the Color to 8? I can change the Color in the Properties Manager and it says they are Color 8 but do not actually change colors in the Drawing.

drdesignz
2008-09-15, 05:30 PM
You can edit a block by double clicking it and hitting enter to go into block editor. As far as I know, it's either that or exploding the block to it's change colors.

dzatto
2008-09-15, 05:33 PM
I have some Blocks in Model Space that were brought in and are Green in Color. I have some leaders and notes in Paper Space that were done in Yellow color. I want to Shade them all back to Color 8 so that the items of interest and concern at the moment are more prominent. I do not want to BURST the Blocks and or the Leaders. It there a way to force the Color to 8? I can change the Color in the Properties Manager and it says they are Color 8 but do not actually change colors in the Drawing.
Welcom to AUGI and congrats on your first post. :beer:

I don't know without looking at the blocks, but it sounds like they were created on a layer other than layer 0, and with a color other than "by layer". As a rule of thumb, I always create blocks on layer 0, and color and linetype set to "by layer". That way, when you insert your block, it will take on the properties of the layer you are inserting it on, and allow you to change the color and linetype accordingly. If you create it any other way, the block will stay that way no matter what you do to it. I hope that makes sense.

To fix it, select the block, right click and choose "edit block in place" or "block editor". Either will work. Then, select all the linework and set it to layer 0, and set the linetype and color to "by Layer". Save the changes and you should be good to go.

*edit* as Amsterdamn suggested, you should be able to double click on it to go into block editor if your double click is set up to do so. I think it's that way by default if I remember correctly

tedg
2008-09-15, 05:44 PM
I have some Blocks in Model Space that were brought in and are Green in Color. I have some leaders and notes in Paper Space that were done in Yellow color. I want to Shade them all back to Color 8 so that the items of interest and concern at the moment are more prominent. I do not want to BURST the Blocks and or the Leaders. It there a way to force the Color to 8? I can change the Color in the Properties Manager and it says they are Color 8 but do not actually change colors in the Drawing.
As others said already, blocks should be created on layer zero and inserted (or put on) the appropriate layer, because layer zero allows it to take on the layer's properties it's put on. However, the colors of the actual line work within the block must be set to ByLayer or it doesn't work.

Look here (http://forums.augi.com/showthread.php?t=84041) for a thread that talks about setting the colors of everything in the drawing to ByLayer. In here there's a lisp routine that does this, including geometry inside blocks!!

It's awesome, I use it all the time.

I hope this helps you like it helped me.

robert.1.hall72202
2008-09-17, 12:20 PM
and if you didn't.............does anyone have a script that will go through a directory of files, open each one, set everything to bylayer on layer zero, and save each file.

?????

ccowgill
2008-09-19, 05:28 PM
and if you didn't.............does anyone have a script that will go through a directory of files, open each one, set everything to bylayer on layer zero, and save each file.

?????



(defun c:Bb (/ UserFile UserDir FileList File#1 DwgName FileName )
(vl-load-com)
(setq UserFile (getfiled "Select a drawing within the directory to process" "" "dwg" 16 ) )
(setq UserDir (vl-filename-directory UserFile ) )
(setq FileList (vl-directory-files UserDir "*.dwg" 1 ) )
(setq File#1 (open "c:/BatchRun.scr" "w" ) )
(foreach DwgName FileList
(setq FileName (strcat "\"" UserDir "\\" DwgName "\"" ) )
(princ "open\n" File#1 )
(princ (strcat FileName "\n" ) File#1 )
(princ "(command \42._SETBYLAYER\42 \42ALL\42 \42\42 \42y\42 \42Y\42 )\n" File#1 )
(princ "_.close\n" File#1 )
(princ "N\n" File#1 ) ; do save
)
(close File#1 )
(command "._delay" "3000" ) ; wait ~3 sec to let file close
(command "._script" "C:/BatchRun.scr" )
(princ)
)

this just changes everything to bylayer, not with a specific layer, I suppose you could create a selection set and feed that to the command instead of ALL.

robert.1.hall72202
2008-09-25, 07:53 PM
Nice, thanks for sharing. It will come in handy.

I am using the filter command to take just the dimensions, leaders, text, etc.

Not automated, however, it helps me change the colors and layers to a
preset standard.