Modify Dimension text

Hallo,

I'm searching for a way to update the dimensions text. I found the way to do this by writing a script and selecting the dimension with the help of element groups but this does not work with dimensions which are into a block. By working with the 2D Editor from SolidWorks I found the possibility to update all Dimension which are on a specific Layer but this does not work with block if the element are include in the block and not dissolved. Is there any possibiltiy to do this with a script and using blocks with specified dimesions whose text could be modified with the help of the scritp.

 

Thank you

 

The Script:

Dimedit

New

TEXT

Elementgroup