Block A Copy attrbiutes to all Instance of Block B

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have a block called "Master_Block" that users at my company will place on the modelspace in AutoCAD. It contains multiple atttributes which they will populate. Our drawings have multiple layouts within one file. Another block (known as the "Legacy_Block") will then be placed onto each and every layout. Finally, I need a LISP script to copy all the attribute contents from The Master_Block to every instance of the Legacy Block.
I have a script which can copy attribute from entsel block A to entsel Block B. My plan is to try and adapt it.
1. User selects (entsel) the Master block. (This bit already works)
2. SSGET (perhaps?) creates a list of entity names of all blocks in the document (all layouts) with effective name "Legacy_Block".
3. For each item in that list copy attributes over (using the script I already have).
I now have 2 entire days of AutoLISP experience so I'm still pretty terrible at this, struggling to find into on how to do the SSGET bit with effective name as the input and ename(s) as the output. Following that I'm not yet sure what I'm doing with the loop either. Any guidance anyone can offer would be greatly appreciated!
Thanks, Dan