Quantcast
Channel: Autodesk AutoCAD forums
Viewing all articles
Browse latest Browse all 14319

Updating a block reference after making changes to the definition

$
0
0

Hi,

 

I searched and saw a lot of topics on this matter but none had the right answer for me.

 

I have a small vba sub wich changes the color and layer of all entities inside a block. It seems to work pretty well for the majority of blocks, but then if I try that on a dynamic block, the definition is correctly altered, but the references aren't updated...

 

I know for a fact that the definition has been correctly modified because if I type bedit, I can see the definition is modified. Then, in the block editor, if I save the block, the references are correctly updated.

 

Do you have an idea on how to force references to update after I made the modifications inside the definition ?

I searched for methods within the VBA Reference and I tried blockRef.Update but it doesn't seem to have any effect.

 

Thanks.

Regards.


Viewing all articles
Browse latest Browse all 14319

Trending Articles