Message 1 of 19
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good day! Below is some code I am working on and I've been scratching my head over it for a while so I thought I might pass it to you guys.
When I remove the FOREACH and hard code the "x" values, the entire routine works. Once I try to step through the entire 'props' list using FOREACH, the routine breaks without error sent to the cmd line.
(setq props (list 7 8 40 41 50 51 62))
(while (not (eq (cdr (assoc 0 dList)) "SEQEND"))
(setq dName (entnext dName))
(setq dList (entget dName))(if (equal (cdr (assoc 2 dList)) sAttName)
(progn
(foreach x props (setq dList (subst (cons x sAttList)(assoc x dList) dList)))
(entmod dList)
) ;progn
) ;if
) ;while
Any ideas?
Solved! Go to Solution.