+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    test_52
    Guest

    Default filter layers in vba

    Registered forum members do not see this ad.

    I am trying to find a quicker way to change the color of certain layers. I don't want to list each layer that I want changed. Is there a way to filter out certain layers according to their name? For example I have the following layers:
    H-equip piped
    H-duct
    H-pipe
    H-hatch

    Is it possible to select all of the layers that contain the string "pipe"? That way I can change the color of the layers that contain "pipe" but not the others.

    Any help would be great!

    Jason

  2. #2
    Super Member
    Using
    AutoCAD 2007
    Join Date
    Aug 2003
    Location
    Livingston, Scotland
    Posts
    995

    Default

    Registered forum members do not see this ad.

    look into the INSTR function ~ it returns a Variant specifying the position of the first occurrence of one string within another
    ResourceCAD.... the Resource for your CAD Solutions

Bookmarks

Posting Permissions

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