Let start this post by saying I know how to add attributes to a block definition.
I would like to add/ update attributes to existing blocks (block reference) in drawing (block reference). For example if I have ten blocks in drawing named "Test" I want to add an attribute to the block definition for "test" . And have all 10 blocks references named "test" already in the drawing updated with the new/added attribute
If I use the objblock.addAttribute (x,x,x,x,xx,) command , this will adde he attribute to the block definition but not the other block references in the drawing.
I have used the ThisDrawing.SendCommand(" attsync n " , objblockname & vbcr ) command with no luck.
I thought this would sync the blocks in the drawing with any changes to the block definition but it does not do the job.
The only way I have found to update the existing blocks is by deleting the existing blockreference in the drawing and re-inserting the block into the drawing. I know there has got to be an easier way.
If I were not using VBA and use the ref-edit command and add an attribute to the block definition all the block references in the drawing are updated with new attribute.
I know there must be a way to do this using VBA
Thanks
Fred C.