#Attribute Insert
19-Feb-92 10:18:59
Sb: #33542-#Attribute Insert
Fm: Tony Tanzillo [LISP TM] 71241,2067
To: JERRY GRAGG 74670,34
Gragg – I think your question seems to be more one of how to do conditional
looping in AutoLISP.
In your case, the problem is that you must know *how many* times to repeat
the loop, and if this number of iterations is determined by the number of
attribute prompts that appear after inserting the block, then it will get
rather tricky.
What I would suggest is that you turn attribute prompting off (via a call to
(setvar "attreq" 0)), and then go back and replace the values of the variable
attributes using AutoLISP's (entmod) and (entnext) functions. If you need
help with these, then just hollar.
-TonyT.