Results 1 to 6 of 6

Thread: removing items from list

Threaded View

  1. #1
    Member
    Join Date
    2012-03
    Posts
    4

    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. Old Wish List Items
    By iankids in forum Revit Architecture - General
    Replies: 4
    Last Post: 2008-12-08, 07:52 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. Removing Items from a Design Option
    By pashley in forum Revit Architecture - General
    Replies: 4
    Last Post: 2005-03-28, 11:57 PM
  4. 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
  •