See the top rated post in this thread. Click here

Results 1 to 6 of 6

Thread: removing items from list

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Member
    Join Date
    2012-03
    Posts
    4
    Login to Give a bone
    0

    Default removing items from list

    Hello all,
    So I have been tasked with setting up something for back fixing layers. at the end of all this I plan on using the "laytrans" command to have the user decide what layers they want transferred. A corrected template is already provided and I know what layers should exist in the drawing, but I need to provide a list of layers that don't belong. So first thought was to use this


    Code:
    (setq lay (tblnext "LAYER" T))
    (while lay
    (setq lay_lst (cons (cdr (assoc 2 lay)) lay_lst)
    lay (tblnext "LAYER")))
    to grab all my layer names. This is functioning as I expected but how do I remove the good layers from this list by their name? Thanks for the help in advance!
    Last edited by Opie; 2012-05-02 at 01:03 PM. Reason: [code] tags added

Similar Threads

  1. Removing the double list pairs
    By Ehsan in forum AutoLISP
    Replies: 1
    Last Post: 2012-07-16, 03:47 PM
  2. Removing items from an install dwg
    By robert.pickeral in forum CAD Standards
    Replies: 1
    Last Post: 2008-07-03, 01:28 PM
  3. Wish List items
    By The Monk in forum Revit Architecture - Wish List
    Replies: 23
    Last Post: 2005-07-09, 03:02 AM
  4. Removing Items from a Design Option
    By pashley in forum Revit Architecture - General
    Replies: 4
    Last Post: 2005-03-29, 12:57 AM
  5. Removing duplicate strings in a list
    By whdjr in forum AutoLISP
    Replies: 7
    Last Post: 2004-06-09, 05:40 PM

Posting Permissions

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