Copy values from one Attribute block to selected block

Copy values from one Attribute block to selected block

karthur1
Mentor Mentor
1,657 Views
21 Replies
Message 1 of 22

Copy values from one Attribute block to selected block

karthur1
Mentor
Mentor

We have updated our BOMs and now the columns are a different spacing. When we copy the BOM's from an older drawing to this new format, the rows do not line-up correctly. To fix this, we have to copy/paste each value of the attribute block from the old block to the new block.

 

karthur1_0-1721072761617.png

 

 

What I would like to do is run a lisp command, then select the old block, then select the new block and it then copies all the values from the old to the new.  Even if the value in the old block is <blank>, it still is copied.

 

I found this (see attached), but it only copies the one value that is selected an not ALL 5 of the values in the block.  How can I make this copy/paste all the values in my block?

 

Thanks,

Kirk

 

 

0 Likes
Accepted solutions (3)
1,658 Views
21 Replies
Replies (21)
Message 21 of 22

karthur1
Mentor
Mentor

@komondormrex wrote:

@karthur1 wrote:

Would it be possible for the lisp to not match the tag names?


that one is easier

 

 


That's a champ.  Works for several tests I made with it.

 

Thank you again!!

Kirk

Message 22 of 22

paullimapa
Mentor
Mentor

If you're interested here's an Att2Att.lsp version that automatically changes/updates all selected target blocks attribute tag names with the source block's attribute tag names and then transfers the matching values over.


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos