Jump to content

Change Color by Layer to Color to spesific


ChristopherM

Recommended Posts

Hi

 

Is there a command where I can select all and change the properties from Color ByLayer to specific color, which is the same color as the color ByLayer.

 

Say there is a layer set to color red ByLayer and everything in that layer I want to move to a new layer which is green. But I want to keep those things red and not make them green.

 

Thanks for the help

CM

Link to comment
Share on other sites

Piece of cake.

 

First assign all your objects a specific object property, in this case the color.

Select all your objects, then simply click the object properties "Color" drop down list and click on the desired color from the index or "More colors...". See image.

 

Then while the objects are still selected, click on the layer drop down list and click the layer you want them moved to, and Bob's your Uncle. The layer color property will then NOT override the specifically assigned object color properties.

colors.jpg

Link to comment
Share on other sites

Don't think I understand or I wasn't clear enough.

 

I have lots of objects in different layers with different colors and it will take too long to select each single object or layer and give that object a color.

 

I want to select them all and automatically give them a specific color based on the layer. Fast and easy, or so it seems. If color on Layer red, give all objects on that layer red.

 

Still possible?

Link to comment
Share on other sites

I was thinking same as Dana if you want a few layers changed you will have to pick them in some way either by picking an object on that layer or using a DCL with a list. Then you can simply use a ssget with layer filter and use a simple CHPROP command. Anyway here is a start for you.

`

(defun c:setcol ( / lay ss col)
(setq col (getint "enter colour number"))
(while (setq ent (entsel "Pick an object pick nothing to exit ")) ; 
(setq lay (cdr (assoc 8 (entget (car ent)))))
(setq ss (ssget "X" (list (cons 8 lay))))
(command "CHPROP" SS "" "C" col "")
) ; while
)
(c:setcol) ; runs 1st time when loaded

Link to comment
Share on other sites

Hmmm, Select All is a command. Since that is what you said you were doing in your original post, I went that way.

 

There are many ways to select your objects in bunches. On is using qselect, and applying the proper property filters to the selection criteria.

 

You can even use Layiso (layer isolate) then select all objects on the isolated layer that are a particular color. Perhaps you need someone to help you with a LISP routine to do these things. That I can't help with.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...