I need a LISP routine that will read all of the attributes and thier labels from a selected entity and insert the data into either another block with identically named attributes or another instance of the same block (or multiple blocks). I would like it if the command gave the option to either insert the data into an existing block(s) or insert a new block with the specified fields filled in, but really just need the former function.
For example, I have a table that consists of many single lines of attributed blocks and I need to take the data from that table to an updated version of the same block (with more attributes). I have other functions in mind, as well.
I'm working on developing this myself while I wait for responses, but help would be appreciated. What I'm really looking for is sections of code that I can enter to do the overall function, as I may be adding much more to this command later. What I need to do right now is:
-extract all attributes from a single selected block and save them and thier tags as local variables, being sure to keep the two linked (associative lists probably the best bet there).
-insert data into the attributes of one or more selected blocks with similar tags. Needs to overwrite anything in the tags being inserted, while leaving the data of tags the original block didn't have data for.
-possibly have the function throw back a way for the user to sift through the data to pick and choose what to and not to insert.