Searching a list

Discussion in 'AutoCAD' started by Scott, Aug 5, 2003.

  1. Scott

    Scott Guest

    Hi everybody,

    With the help of the members of this board I was able to generate a list of
    all the layer names in my drawing (list is stored under the variable
    lnlist). Now I was wondering how I go about searching the list for a
    specific layer name?

    Thanks again!
     
    Scott, Aug 5, 2003
    #1
  2. Have a look in the help files, start with the (member) function.
     
    Jason Piercey, Aug 5, 2003
    #2
  3. Scott

    Mark Guest

    as Devin metioned, be careful w/ caase...
    (vl-position (strcase layername)(mapcar 'strcase lnlist))
     
    Mark, Aug 5, 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.