Marcel Janmaat
Usenet Archive
- Joined
- Aug 19, 2003
- Messages
- 196
- Reaction score
- 0
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
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