I use this {Smirnoff} and ASMI rountines
Num - Insert text with increment value
Renum - Renumbering text in DIMENSION, TEXT, MTEXT, ATTRIB, ATTDEF, ACAD_TABLE
TTC - Text to Text copy. Copy text from DIMENSION, TEXT, MTEXT, ATTRIB, ATTDEF, ACAD_TABLE to one
Apnum - for numbering by blocks with single attribute
The command RENUM can change numbering in DIMENSION, TEXT, MTEXT, ATTRIB in blocks, ATTDEF, ACAD_TABLE.
Choosing the block, it is necessary to specify on attribute.