Multiple values in the assoc 341

Discussion in 'AutoCAD' started by tsigwing, Jan 13, 2004.

  1. tsigwing

    tsigwing Guest

    How do I get all of the assoc 341 values from a viewport?
     
    tsigwing, Jan 13, 2004
    #1
  2. One of many versions floating around here...


    (defun massoc (key alist / x nlist)
    (foreach x alist
    (if (eq key (car x))
    (setq nlist (cons (cdr x) nlist))
    )
    )
    (reverse nlist)
    )

    use it like so: (massoc 341 <your viewport dxf list>)
     
    Jason Piercey, Jan 13, 2004
    #2
  3. tsigwing

    John Uhden Guest

    Return to the other thread. The 341 codes won't help you set frozen layers via
    AutoLisp.
     
    John Uhden, Jan 14, 2004
    #3
  4. tsigwing

    tsigwing Guest

    True, but they will tell me which layers are currently frozen in the viewport.
     
    tsigwing, Jan 14, 2004
    #4
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.