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 1 Guest are viewing this topic.

skyline

Hello there,

Could any one tell me why when I activate the 'Selection Filter' command and use select by colour, not all the colours in my drawing appear in the list, even after clicking on 'refresh'?

Cheers.

skyline

Looks like I answered my own question. The selection filter command does not recognised colours which have been applied using 'colour by layer' settings.

Skyline

samdavo

Skyline
Do you have any groups?  I am guessing that they would affect what was selected as well - and that it would be somehow conditional upon the tickbox offered, i.e. "Select Group Only", not that I have fully come to terms with it yet myself.

skyline

Yes, I do use groups a lot. There are quite a few commands which will not function properly if you do not recursively explode groups before use including layer and colour. I also use groups a lot to move bunches of objects around as as far as I am aware this is the only way to pick up a group of objects by a given point like a corner and snap them to another point.

samdavo

#4
skyline

What I probably should have said was :-
Do you have groups, blocks, symbols,  - all of which you seem to be on top of, and all of which seem to affect the selectability of a colour.

Also multi-coloured solids formed by Solid Subtract?  =  (even whether part of the "subtract-orig" vs "subtractee";  or "minuend" vs "subtrahend" or whatever,  where "minuend - subtrahend = difference").

A similar discussion recently on another thread...
There are differences between
* whether you use Ctrl+A to select, or whether you drag the selection box around the parts.
* Then there is a difference between original and subtracted parts of a hybrid solid i.e. that were formed by Solid Subtract.
* Then there is a difference between whether layers are selected using the selection filter, or whether they are the only unlocked layer (which is arguably a type of filter).   

..............
An experiment to demonstrate:-
The enclosed drawing has a red box (layer2), a blue sphere (layer7), and a red-and-blue-hybrid-solid formed by solid subtracting a similar sphere from a similar box (both colours and layers).

A. Colours.
1. set selection filter to red only = minuend / subtract-orig
(i) Ctrl+A selects just the red box.
(ii) Drag selects both the red box AND the entire hybrid solid (red and blue parts).

2. set selection filter to blue only = the subtractee
(i) Ctrl+A selects the blue sphere AND the blue part of the bybrid.
(ii) Drag selects both the blue sphere and the ENTIRE hybrid solid (red and blue parts).

3. set selection filter to both
then either selection method selects everything.
..........................................
B. Layers.   Ok now to try layers using the selection filter :-
4, 5, 6. You get the same results if you use selection filter to select eg layer 2 only works the same as red colour only.
..........................................
C.  Ok, now to try locking other layers, and ignoring the selection filter.
(minor point - Personally I would always lock and unlock layers with macros, rather than use the filter to choose layers).
7. unlock layer 2 only
(i) Ctrl+A selects JUST the red box.
(ii) Drag selects JUST the red box (differs from colour criterion, 1(ii)).

8. unlock layer 7 only
(i) Ctrl+A (again) selects the blue sphere AND the blue part of the bybrid.
(ii) Drag selects JUST the blue sphere (differs from colour criterion, 2(ii)).

9. unlock both
then either selection method selects everything.


samdavo

#5
SUMMARY
The nine options above will select one or more of :-
(the original shape/solid) ; or
        [the part of the hybrid of that colour/layer] ; or
                {the part of the hybrid of the other colour/layer}

1. (i) (yes), [no], {no},       4. (i) ditto
1. (ii) (yes), [yes], {yes},    4. (ii) ditto
2. (i) (yes), [yes], {no},      5. (i) ditto
2. (ii) (yes), [yes], {yes},    5. (ii) ditto

7. (i) (yes), [no], {no}
7. (ii) (yes), [no], {no}
8. (i) (yes), [yes], {no}
8. (ii) (yes), [no], {no}

I'll let you work out the moral of that particular story, lol. 

PS Personally I don't use selection filter to choose colours, because I use layers and macros to turn them on and off, as well as to set their colours  -i.e. I use options 7 and 8, (i) or (ii) as required, i.e. Ctrl+A or Drag-Select (2 cents).

PS if I have made errors I apologise, but the principle of getting variable results still stands i believe.

skyline

Thanks for the demo's, interesting stuff. My drawings are much simpler than those, usually layouts in 2D and I have always used the same ways to group and ungroup i.e. either drag a box around if possible or shift and click the objects. I guess its just a preference and as long as you understand how yours works it's OK.

prl

#7
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. 

Anyway, I rolled my own.  What you see is what you select.

Dr PR

#8
I almost never use color by layer (for reasons that should be obvious from this thread), and when I do (topo maps) I don't assign colors to objects - all objects have whatever is the default color. This is because it is obvious that in color by layer drawings the color is supposed to indicate which layer an object is on. All objects of a specific type should be on the same layer (or group of layers) and, therefore, the same color.

Color by layer originated either for topographic maps where all features of a specific type have the same color, or for circuit board layout where all traces on a physical layer of a PC board or on the same drawing layer. This is just an electronic simulation of the ancient method of drawing "layers" on clear plastic and stacking them.

The "Selection Filter" has a "Layer" option, and a tab to show you the layers. So, if you want to select layers use this option.*

****

In the real world, and in 3D virtual worlds, individual objects have their own colors and materials, so color by layer is meaningless. For these drawings we assign materials and colors to individual objects regardless of what layers they are on. In this case layers are just a way to control visibility of different parts of a drawing and the "by layer" properties should be disabled.

The "Selection Filter" has options for "Color" and "Material." In this case if you want to select objects by their color or material use the appropriate filters.

****

The problems that you are describing are examples of using particular tools improperly, like driving screws with a hammer. You can do it if you want, but to me it seems pretty silly.

Personally, rather than wasting time time trying to fix a non-problem you should just use the tools properly.

****

*The "Selection Filter" doesn't show layer colors (if assigned) and that would be a useful addition.

Phil
DesignCAD user since 1987

prl

Quote from: Dr PR on October 20, 2014, 08:48:55 AM
rather than wasting time time trying to fix a non-problem you should just use the tools properly.

Wasn't advocating fixing the selection filter command, personally it is a waste of my time command.  Just pointing out one can't really select-by-color using it.

Dr PR

Well, you can, but you really need to remember how you created the drawing.

You are not limited to one type of "Select by" type - you can enable multiple types. So you can enable "Select by Color" and "Select by Layer" and then select the desired color in the "Color" tab and the desired layer in the "Layer" tab - assuming you reember which color is assigned to which layer.

I have posted a feature request asking that the assigned layer color and line type (if any) be shown in the layer list in the "Selection Filter" "Layer" tab dialog. This would help when you want to select colored objects by the layer with that assigned color.

Phil
DesignCAD user since 1987

prl

#11
Quote from: Dr PR on October 20, 2014, 10:21:00 AM
Well, you can, but you really need to remember how you created the drawing.

Nobody remembers how they created a drawing.  My motto WYSIWYG.  The current Color Selection Filter is actually an Entity Properties Color Selection Filter, not a Displayed Properties Color Selection Filter.  This may be obvious to some once you know the difference but if you don't it does cause confusion when a user wants to select RED things in the drawing and not all RED things are selected.

Then the hunt begins dissecting the drawing entity by entity and finding out why not. Hence the topic.

skyline

Thanks for the above everyone. I now understand the difference between entity colours and display colours and am going to be much more careful how I use them in the future. Too late for this drawing but next time. Thanks, educational comments as always.

samdavo

Quote from: prl on October 20, 2014, 05:31:08 AM

modified example, the Red box and Blue sphere are actually green and cyan.  According to the selection filter, there are no Red items. 

Anyway, I rolled my own.  What you see is what you select.
wow - never used entity colours.
I originally thought you must have had some magic mushrooms growing near your computer.
cheers

Dr PR

prl,

"Nobody remembers how they created a drawing." So true! Especially if it is an old drawing, and even more so if you didn't create the drawing in the first place!

This is why some discipline is necessary when you create a drawing. Before bumbling on using features you don't understand you should take the time to find out how they work and why they are there.

I never mix layer colors with object colors - it is either one or the other in my drawings, and rarely do I use layer colors. This way the displayed color is either a property of the object or a property of the layer it is on and there is no confusion.

If you use layer properties the "Layers" dialog shows which colors are assigned to which layers. If you don't assign the same color to multiple layers the color tells you which layer an object is on. Of course you can always select an object to see which layer it is on.

Phil
DesignCAD user since 1987