News:

Please note new Forum URL: forum.designcad.com

Main Menu

Changing Color

Started by Reddog54, April 09, 2014, 02:55:07 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Reddog54

Is there an easy way to change the color of all objects drawn in one color to a different color.  Say all items that are color X change to color Y.  Or maybe a macro already written out there that can do that.  The reason I ask is that sometimes when you draw things the contrast seems much better on the screen than on paper and I don't want to have to change that many objects one at a time.

Any help, tips, hints would be appreciated.

Steve

prl

#1
Can be done with a macro, but the selection filter comes to mind.  Hit shift F and you can select all entities of a specific color, then use the infobox or the color palette to assign a new color to the selection.


samdavo

#2
Here's how I do it reddog - macro to change selection to red  (and layer 2) is "selection-to-2";
not only changes colour but layer as well (everything red is - usually lol -  on layer 2)
http://forum.designcad.com/index.php?topic=4826.0
likewise selto4 = green

To select only green use 4.dcm before dragging selection box
(just hit hotkey 4)
and ot change to 2 use sel to 2


Reddog54

Thanks for the help and replies.  See what I can do with that to work in my situation. :)

Dr PR

Reddog,

Color can be tricky in DesignCAD because of several options.

1. Every object has a basic color and material. The default material is "Default." You can assign any of the colors from the color palatte to the "Default" material.

You can assign a material other than the "Default" to any object. These non-default materials ("White," "Black," "Ruby," etc.) have intrinsic colors that cannot be changed, and they have a basic color that you can assign. So you can have an object with a material color white and a basic color red.

2. What you see depends upon the view mode and rendering settings. In Wireframe view you see only the basic colors.

With shaded images you will see only the basic colors if the "Enable color material" option is disabled.

If "Enable color material" is selected, non-default material objects will render in the intrinsic material color, and not the basic color.

Furthermore, "Quick" and "Gouraud" shading only do approximate colors - "White" and "Black" materials display as shades of gray and textured materials ("Concrete," "Walnut," etc.) display as solid colors. "Phong" shading has more color depth so textured materials display things like wood grain, etc.

3. The background color also affects the displayed color of objects in Wireframe view. If an object's color is almost the same as the background, DesignCAD displays the object in a complementary color so it can be seen. For example, objects with the "White" material display as block on a white background.

****

4. In addition to these fundamental color display issues, you can assign colors to layers in the "Layers" dialog. When you do this objects normally display only in the layer's colors.

NOTE: Assigned layer colors are more useful for 2D line drawings. You can use them in 3D drawings but the results may be a bit wierd.

For example, if you move an object from a layer with one color to a layer with a different color the color of the object changes to the color of the new layers. For example an object on a red layer will change to green when moved to a green layer.

If you move an object from a layer with an assigned color to a layer that has no assigned color, the object will display in the basic material color as described in 1-3 above.

5. You can override a layer's assigned color for specific objects. Each object has a "Color by layer" attribute that can be changed in the Info Box.

This attribute is normally enabled if you create an object on a layer with an assigned color, and the object's basic color will be the layer's color. From then on the "Color by layer" attribute will be enabled so the object will assume the color (if any) of any layer it is moved to.

But if you disable an object's "Color by layer" attribute in the Info Box it will not change colors as you move it from layer to layer. It will always display the basic color.

****

So the answer to you original question depends upon all of the above.

However, the easiest way to change all objects of one color to a different color is as prl suggested.

Open the "Edit/Selection Filter," select the "Color" tab, and check the "Select by color" option.

Then select the color from the color palatte (it shows only the colors of objects in your drawing) and click the "Add --->" button to add the color to the selection list.

LEAVE THE SELECTION FILTER DIALOG OPEN. The filter works only while the dialog is open.

Now click in the main window and use "Edit/Select All" (CTRL A) to select all objects of the chosen filter color.

Open the Info Box (CTRL I) and change the color by clicking on the color tile in the upper left corner. Chose a new color and click "OK."

Phil
DesignCAD user since 1987

Reddog54

Thank you for all that info Phil.. it gives me a lot to think about and it is good to know how DCAD arrives at the color it displays.

I had already changed the color on the drawing I was working on by first making the layers I did not want to mess with unvisable and uneditable.  Then using the selection filter as suggested by prl I selected the items by the color that I wanted to change and went to the info box and changed them to the  new desired color.  Probably did not follow the exact steps you outlined above as I was stumbling through and learning as I went (it seems to sink in better that way) but I eventually got the job done.

As far as assigning colors to layers I only assign colors to 1 layer right now and that is layer 2 for dimensions. while I was stumbling around I learned a little more about how that works as well.  I may take some of the things that you listed above and try and put them to some use so that I might remember them in the future.

Thanks again for everyone's help and input, it is much appreciated!

Steve

prl

Quote from: Reddog54 on April 10, 2014, 03:08:03 PM
Thanks again for everyone's help and input, it is much appreciated!

Steve, always many ways to do things in DesignCAD.  Here is another.  Pick a color in the color toolbox making it the active color.  Pick some items (or use the selection filter), then hit the big A on the color toolbox.

Reddog54

I like that tip too Prl.  I can see that coming in pretty handy.