Layer Color Routine

Discussion in 'AutoCAD' started by Tim, Aug 17, 2003.

  1. Tim

    Tim Guest

    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
     
    Tim, Aug 17, 2003
    #1
  2. Tim

    Paul Turvill Guest

    LAYER and PROPERTIES commands? Set objects to color BYLAYER, then set Layer
    color to whatever color it is you want.
    ___
     
    Paul Turvill, Aug 17, 2003
    #2
  3. Tim

    BTO Guest

    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.
     
    BTO, Aug 26, 2003
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.