Well, being a lisp noob, I work with what I know.
At this point I don't know exactly what I will be doing. Let me explain
I want to insert blocks from a CSV file (thanks Lee Mac for that original code). Normally I only have a few attribs to add to the block. I was approached with a new project where I may have many attribs to apply. The code I have uses a cond to match the attrib tag to the coorect variable. I just wasn't sure if there was a limit to that process. I'm not sure yet how may attribs each block will have on this, but I expect it to be 10 or more.
this is the method I have to apply the data to the block attribs:
(foreach att (vlax-invoke obj 'GetAttributes)
(COND ((EQ "ID" (VLA-GET-TAGSTRING att))
(VLA-PUT-TEXTSTRING att tnum)
)
((EQ "BOTANICAL" (VLA-GET-TAGSTRING att))
(VLA-PUT-TEXTSTRING att species)
)
) ;_ end of cond
);_ end of foreach
Any insight as to how I could do this better would be appreciated, just use small words to explain it and speak slowly