• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

select by "color" and "line type"

  • Thread starter Thread starter GiGa
  • Start date Start date

GiGa

Guest
working with designs created with many different standards, I often have to delete parts (especially hidden lines) and/or change the properties of the lines. convenient to do this are filters or "select similar"... but utility stops when objects have "by-layer" properties.
In fact, wanting to limit the selection to, for example, all the magenta objects, if they have the color "by-layer", the filter does not serve, as of course, all objects with "by-layer" color are selected. . .

Is there a linen to select the "effective" color (and/or line type) even if the objects are "by-layer"?

ps: Of course you could select the layers, but often with drawings that have dozens of different layers you lose too much time. . .
 
Hi.
I tried to simulate a situation you described.

Suppose we have many lines with color dalayer cyan and lines with color cyan. the goal, if I understand correctly, is to select all the cyan lines independently if it is dalayer or cyan.

you could filter the layers by filtering all layers that have the color dalayer = cyan defrosting all and using the _filter command to select all lines that have the cyan color.

or use the following command:

(setq color (ssget "x"((62 . 4))))

to select all cyan color objects (4 = cyan).

In short, perform a double filter. 1st on layers and 2nd on objects.
I do not know if it is the best solution but I tried everything but also in lisp you have the same problems as the _filter and the _quickselect
Hi.
 
the function (fnselbycolor numcolore) returns a selection group of all entities that have color = numcolore and if they have color bylayer, they pick the color from the plane and if = numcolore added to the selection.

same procedure for (fnselbylinetype tipolinea).

bye
 

Attachments

thanks for the advice.. .
for the lisp... with which I command the launch?

ps: do you understand that I know little or nothing? It's one of those things I always say I have to study well, but they're going back, then... they're going back and then... they're going back. .
 
write on the command bar:
(fnselbycolor 1) to select all red objects
(fnselbycolor 2) to select all yellow objects
(fnselbycolor 3) to select all green objects
(fnselbycolor 4) to select all cyan objects
(fnselbycolor 5) to select all blue objects
(fnselbycolor 6) to select all magenta objects
....and so on for the colors you want to select.
Hi.
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top