Results 1 to 2 of 2

Thread: LISP Change layer properties by name filter

  1. #1
    Woo! Hoo! my 1st post
    Join Date
    2016-05
    Posts
    1
    Login to Give a bone
    0

    Lightbulb LISP Change layer properties by name filter

    Hello!

    There are a lot of LISPs to set layer properties(color, line type etc.) by a defined name. But I need to use only part of the name(filter).

    Example:
    I have a dwg file with 100500 layers:
    ----------------
    1-F-1
    1-F-2
    ...
    8-C-1
    8-C-2
    ...etc.

    ---------------
    For all layers contain *-F-* I have to change color to red, and for *-C-* to green and so on.....

    Maybe someone had known ready lisps or can help me with code

  2. #2
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL USA
    Posts
    3,667
    Login to Give a bone
    0

    Default Re: LISP Change layer properties by name filter

    The -Layer command can do that
    -LAYER C 1 *-F-* C 3 *-C-*

Similar Threads

  1. Only Filter Layers in Layer Properties Manager Palette
    By Wish List System in forum AutoCAD Wish List
    Replies: 1
    Last Post: 2013-10-28, 07:29 PM
  2. Layer filter for currently selected objects in layer properties palette
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 0
    Last Post: 2010-06-09, 01:16 PM
  3. Layer group/filter in layer properties manager.
    By Jonathan Pitt in forum AutoCAD General
    Replies: 6
    Last Post: 2010-05-25, 08:19 AM
  4. View/Change Properties in Layer Properties Window
    By mlongfellow in forum AutoCAD General
    Replies: 2
    Last Post: 2007-12-28, 03:37 PM
  5. How to change layer filter?
    By priitl22047477 in forum AutoCAD Customization
    Replies: 2
    Last Post: 2004-11-03, 06:04 AM

Tags for this Thread

Posting Permissions

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