Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: Changes to Standard Layer Colors

  1. #1
    Member
    Join Date
    2000-12
    Posts
    25
    Login to Give a bone
    0

    Default Changes to Standard Layer Colors

    My office has standards for layer colors. Our client has different standards for layer colors. I want to be able to change all of my layers that are magenta, for instance, to yellow for the client's deliverables, and so on thru the entire Acad color spectrum. Does anybody have either a lisp routine or script for doing that?

  2. #2
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719
    Login to Give a bone
    0

    Default Re: Changes to Standard Layer Colors

    A custom LISP routine can be written, but I would try the LAYTRANS command first.
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

  3. #3
    Member
    Join Date
    2000-12
    Posts
    25
    Login to Give a bone
    0

    Default Re: Changes to Standard Layer Colors

    I'll work with that and see if I can make it work. Thanks

  4. #4
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719
    Login to Give a bone
    0

    Default Re: Changes to Standard Layer Colors

    Quote Originally Posted by John MacFall View Post
    I'll work with that and see if I can make it work. Thanks
    Your welcome.
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

  5. #5
    Member
    Join Date
    2000-12
    Posts
    25
    Login to Give a bone
    0

    Default Re: Changes to Standard Layer Colors

    I tried Laytrans but it doesn't do the job I want to do. If I could set the filter by color rather than layer name and then change only the color I would be part way there but I would still have to deal with what happens when I try to change other colors; eventually I'll be grabbing layers that I just changed and changing them again. I almost need to put each group of layers (based on color only) in temporary holding tanks until all original layers have been selected, then change the color of each group and release them back into the drawing.

    This whole need for change is brought about by differences in color tables, not layer names. I just want my drawing to print like I want it to print using their color table. Nothing changes but the layer colors.

    COLOR TABLE TRANSLATOR. That's what I need. That would be a very cool addition to the software.

  6. #6
    Certified AUGI Addict jaberwok's Avatar
    Join Date
    2000-12
    Location
    0,0,0 The Origin
    Posts
    8,570
    Login to Give a bone
    0

    Default Re: Changes to Standard Layer Colors

    Create a new template drawing with the revised colours and insert each existing drawing, one at a time, and resave it. The colours in the new template will take precedence if the layer names are the same.

  7. #7
    Member
    Join Date
    2016-01
    Location
    Hants / Wilts Border
    Posts
    25
    Login to Give a bone
    0

    Default Re: Changes to Standard Layer Colors

    You can create filters in the layer manager so it only show layers with a particular layer colour, which you could then change and move on to the next one. Only hitch being what order to do this in so you don't change colours to a client colour that you already have in your colours (if you get my drift). Just a matter of thinking about the order in which you do the layers

  8. #8
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719
    Login to Give a bone
    0

    Default Re: Changes to Standard Layer Colors

    If laytrans won't work for your needs, then I'd follow Jaberwork's suggestion.

    The only other method I can think of requires a custom LISP routine, which steps through each Layer Item in the Layers Collection of the ActiveDocument Object, and conditionally changes the Layer Item's Color Property.
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

  9. #9
    Member
    Join Date
    2000-12
    Posts
    25
    Login to Give a bone
    0

    Default Re: Changes to Standard Layer Colors

    We have projects with hundreds of drawings. I don't think it would be practical to create a template with all of the layer names in it. But thank you for the thought.

  10. #10
    Member
    Join Date
    2000-12
    Posts
    25
    Login to Give a bone
    0

    Default Re: Changes to Standard Layer Colors

    Quote Originally Posted by RenderMan View Post
    If laytrans won't work for your needs, then I'd follow Jaberwork's suggestion.

    The only other method I can think of requires a custom LISP routine, which steps through each Layer Item in the Layers Collection of the ActiveDocument Object, and conditionally changes the Layer Item's Color Property.
    Yeah, that's pretty much what has to happen. But the holding tank concept has to be a part of it, otherwise I'd be in an endless loop of changing colors that have already been changed. If I could somehow get the application to read two selected color tables and spit out a script to run on the drawing to change it from being compatible with one color table into being compatible with the other color table......

Page 1 of 3 123 LastLast

Similar Threads

  1. Replies: 2
    Last Post: 2009-10-06, 08:06 PM
  2. standard colors?
    By mhartmann in forum Revit MEP - General
    Replies: 1
    Last Post: 2009-05-26, 04:46 PM
  3. LISP to change layer colors to random colors
    By mtubbs in forum AutoLISP
    Replies: 10
    Last Post: 2007-04-27, 05:39 AM
  4. Compare layer colors to pantone colors
    By gandre in forum AutoCAD LT - General
    Replies: 5
    Last Post: 2005-11-18, 01:32 PM
  5. layer colors
    By karen.perez in forum AutoCAD General
    Replies: 3
    Last Post: 2005-01-20, 04:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •