Layer Color Routine

Tim

Usenet Archive
Joined
Oct 4, 2000
Messages
153
Reaction score
0
Has anybody written or does anyone already have a routine that they would be willing to share that does the following;

Pick entitites, ask for layer color by name or number and then change the layer color of selected entitites to said color. Which in turn will obviously also change all the effected entities on said layer whether they are bylayer or have had a color set....anything like that out there..

Thanks

Tim
 
LAYER and PROPERTIES commands? Set objects to color BYLAYER, then set Layer color to whatever color it is you want.
___
 
hi,

I have difficulties to understand your question.

may be, a solution : CBYLAYER.LSP

Bruno Toniutti

the header :
; CBYLAYER.LSP Change entity color to BYLAYER.
;
; Copyright (C) 1992 by Autodesk, Inc.
;
; Permission to use, copy, modify, and distribute this software ; for any purpose and without fee is hereby granted, provided ; that the above copyright notice appears in all copies and that ; both that copyright notice and this permission notice appear in ; all supporting documentation. ; ; THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED ; WARRANTY. ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR ; PURPOSE AND OF MERCHANTABILITY ARE HEREBY DISCLAIMED. ; **************************************************************** ; ; This program sorts entities by their color, and places all entities with ; the same color on a layer whose name is the color number (e.g., entities ; with the color # 3 will be placed on a layer named "3"). ; ; The entity color of all entities are changed to "BYLAYER", and the layer ; inherits the color of the entities placed on it. ; ; Essentially, this program was written to eliminate entities with explicit ; color properties, in preperation for exporting via DXF to a post-processor ; that does not honor color-by-entity. Use at your own risk.
 

Latest threads

Back
Top