News:

Please note new Forum URL: forum.designcad.com

Main Menu
DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Select by Colour Filter

Started by skyline, October 18, 2014, 11:40:34 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Dr PR

#15
Sam,

I have seen many of your images where you obviously are using entity colors - especially in 3D drawings and in shaded images.

In DesignCAD you have many color options.

IF you have not previously selected a material in the "Materials" dialog, every time you create an entity it will have the "Default" material and an assigned base color. If it is created on a layer that has an assigned color the color will be the layer's assigned color and the object's "Color by layer" option will be enabled. If it is created on a layer without an assigned color the base color will be the currently selected color in the "Colors Toolbox" and the "Color by Layer" option will be disabled.

However, IF you have previously selected a non-Default material the object will get the assigned material and the materials normal base color. For example if the "White" material is selected new objects will have the "White" material and the white base color.

Objects are displayed in wireframe view with their assigned base color if they are on a layer that has no layer color. If on a layer that has an assigned color they will be displayed with the layer's color IFF the object's "Color by Layer" option is enabled (in the Infor Box). If it isn't it will be displayed in the base color.

However, if the color is (almost) the same as the background the color will be "inverted" to create a contrast with the background so you can see the object.

How colors are displayed depends upon several things:

1. Objects have a base color and a material color. You can select an object of any material type and assign a base color by  either ising the "A" button in the "Color Toolbox" (assigns the currently selected color) or opening the Info Box and creating a color in the "Color Palette."

2. The "Default" material has only the base color. All other materials also have a color that is a property of the material. For example you might assign the "White" material to an object and then give it a red base color.

3. In wireframe mode only the base colors are shown. In the example above, the white object would appear red in wireframe mode.

4. In shaded mode the base colors are used IFF the "Enable Color Materials" option in the "Shading" dialog is not selected. In this case the object's material is ignored and it is treated as if it had the "Default" material. In the above example it would appear as a shaded red object.

However, if the "Enable Color Material" option is selected the object's material color will be displayed. In the above example the white object would appear as a shaded white object.

5. All of the above are true IFF layers do not have assigned colors. If they do new objects will get the current material and the material's base color, and  will display with the material's color even if the "Color by Layer" option is selected, unless "Enable Color Materials" is disabled in which case shaded objects will be displayed in their layer color, however IF the object's "Color by Layer" option is disabled it will display in the material color.

Those of you who are playing in the match this afternoon please move your clothes to the lower peg after lunch before you write your letter home if you're not getting your hair cut unless you have a younger brother who is going out this weekend as the guest of another boy in which case collect his note before lunch put it in your letter after you have had your hair cut and make sure he puts your clothes on the lower peg for you.

Now, sex, sex, sex!

Phil
DesignCAD user since 1987

samdavo

#16
Phil
thanks for that, and I believe (hope) I am keeping up.

Quote from: prl on October 20, 2014, 05:31:08 AM
The reason the selection filter doesn't work the way I like is because entities have entity colors but can be displayed with layer colors.  They may not be the same. And a drawing may have a mix of the two type of entities (by entity, by layer).

I always felt that when I say "select all the RED", I'm expecting the program to select all the RED items as they appear on the screen, regardless if they are entity colors or by layers colors. 

In Sam's modified example, the Red box and Blue sphere are actually green and cyan.  According to the selection filter, there are no Red items. 
prl,  re your reply #7,
So can I assume that, in your drawing from which this screensnap was taken, that green and cyan are somehow the result of "colour by layer" settings (?)

I enclose the same screensnap from my own drawing, (called "what green and cyan (??)" -  and, even after I set a few "colour by layer" settings, I can't seem to get green and cyan to appear in the colour filter, nor to get the red and dark blue to disappear.

But in my defence,
I never use "Selection Filter by colour",
and nor do I use "Colour by Layer",
and hence this is just an academic exercise (as far as I'm concerned anyway - maybe not for others).
cheers

PS Phil
so what time does the match start again?

prl

#17
Quote from: samdavo on October 21, 2014, 01:20:56 PM
prl,  re your reply #7,
So can I assume that, in your drawing from which this screensnap was taken, that green and cyan are somehow the result of "colour by layer" settings

Sam, nope.  You have it turned around.  The green and cyan are the entity colors but since the entities have the "color by layer" flag checked (infobox), you are seeing red and blue (assigned by the layers the entities are on).

You'll need to download the file in reply #7.  Select the Red Solid, open the infobox and uncheck "color by layer" and bingo, GREEN.  That is the entity color that is displayed in the selection filter.

prl

#18
And to expose a flaw in DesignCAD 22 (and others I'm guessing),  select the RED solid, make a copy of it.  Take the copy and use the infobox and move it to layer 5 (unassigned), and uncheck the "color by layer" setting.  The copied solid should be green, but DC tramples over the entity color using the previous by-layer color. 

Pretty easy to understand why nothing makes sense to most.

PS. And it gets worse as Phil suggests.  Entities can have entity colors, by-layer colors, materials, texture mappings and/or transparency.

Dr PR

Oh, I forgot to mention. All of my above post assumes that your lighting is white. You can change lighting to other colors, and that causes all of the objects to take on a hue of the lighting color. And, of course, you can have multiple colored lights.

To save my sanity I do not use layer colors, I use a single white Directional Light, set all of the light properties full on, and work mostly with the "Default" material. It helps.

Phil
DesignCAD user since 1987

prl

#20
Quote from: prl on October 21, 2014, 01:41:38 PM
And to expose a flaw in DesignCAD 22 (and others I'm guessing),  select the RED solid, make a copy of it.  Take the copy and use the infobox and move it to layer 5 (unassigned), and uncheck the "color by layer" setting.  The copied solid should be green, but DC tramples over the entity color using the previous by-layer color. 

Referring to my test described, the last time DesignCAD did these steps reasonably correct was in versions 15, 16, and 17.   As of version 18 and higher, it has been wrong.

Regarding my reference to "reasonable", there is an ambiguity as to what one can expect when you take an entity that has the entity property "color by layer" flag ON and you move it to a layer that has no assigned colors.  One can expect two solutions  1.) the entity is shown with a default "no layer color" color, say white, gray, black, or ghostly  (how's that for confusing) or 2.) it defaults back to the entity color.  Option 2 is what DesignCAD versions 15, 16, 17 did.  That is acceptable to me.

If you are going to test my test, you need to use the file in reply #7, not Sam's original file.