@Anonymous hi,
OK it tooks alot of time but have success 😀
So Attached pattfc.zip contain pattfc.VLX (Populate Attribute Field Code) lisp program which uses FieldCodeV1-1.lsp from Lee Mac (thanks lee) to retrieve field code from attribute, may be download from >> here << but you do not need this cause i wrapped it all for you in one VLX file.
extract the vlx in any lisp folder and load it and key in PATTFC to run the program.
Command: PATTFC
Select source attribute to populate: <pick attributes>
You can pick some attributes from some blocks in one session.
cause AutoCAD do not respond to highlight calls to highlight attribute from AutoLISP, each attribute you pick will echo the tag name to the command line (so you'll know it is picked). press enter to finish picking attributes, than all the relevant block references is auto selected and the populate field code will be preformed. the selected attributes are skipped and not be modified.
at finish do a REGEN to see the change 😀
enjoy
Moshe
OH, one more thing:
this task could all be done more easily with pure lisp without using field. cause fields i given to ones (and AutoCAD LT) that does not write lisp code or has no one to write for. it's true when there is a field and the block moves the attribute is update (after a regen or updatefield) but if there isn't field the lisp can be run and the result is the same.
Am i right?