Obtaining attribute values inside a block

Discussion in 'AutoCAD' started by Marcel Janmaat, Sep 12, 2003.

  1. Can anyone give me some support in the following.

    If i have a selection set of blocks, i want to maka a list of the values a
    certain attribute within these blocks.
    How do i do this, making sure I've run through just all the attributes of
    each block and skipping all other stuff wich comes across.

    I jused to do this when i wanted to obtain the values of a certain attribute
    within a selectionset of blocks;
    But now it does not work anymore. Maby something changed here in A2k2? What
    hapens here is that it also runs through all the following blocks after
    SEQEND.

    (while (and (/= (cdr (assoc 0 el2)) "SEQEND") (setq el2 (entnext (cdar
    el2))))
    (setq el2 (entget el2))
    (if (and (= (cdr (assoc 0 el2)) "ATTRIB") (= (cdr (assoc 2 el2))
    "SPC")) (setq spc (cdr (assoc 1 el2))))
    )

    Hope i'm clear on the subject.

    Regards MJ
     
    Marcel Janmaat, Sep 12, 2003
    #1
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.