I'm drawing a blank, maybe it's because it's hump day :ugly:
I have a attribute in a dynamic block named COL_ID with a value that is prompted upon insertion. Pretty typical no big deal however I have a lisp which changes the value of attributes but I need to set it so it only changes if attribute = COL_ID.
I borrowed this from lee-mac and changed it around so I could learn how things were working but here is the important section. How ever I am not sure why this is proving difficult this morning. :pissed:
(if
(and
curText
(member(cdr(assoc 0(entget curText))) '("ATTRIB"))
); end and
(progn
(vla-put-TextString
(vlax-ename->vla-object curText)curStr)
(setq grnum_seq(1+ grnum_seq))
); end progn
(princ "\n--- THIS IS NOT THE COL_ID ATTRIBUTE ---- ")
); end if
I used to have a bookmark which was for a website listing all the Autocad cons, their value and what they did, eg; 0 = entitiy, 5 = layer, etc. Does anyone know the website I'm talking about?