Looks like you are out of luck?
Once upon a time I attempted (< 2008) something quite similar to this.
The strategy I used involved registering an application.
Create a dotted pair with the application name and sequential number
and embed into the desired object (using group code -3).
An external lisp is launched that will gather these objects, sort, and
update the value.
(if (setq s (ssget "x" '((-3 ("DWG_NAME")))))
I do not remember if the object can be found when it is nested inside a block?
I'm sure the VL- functions can handle this.
The routine should have two additional functions - One that will apply
the "tag" as the object is being created and, have the ability to add the
tag to an existing object. Somewhere in the mix there should be a
block of code that will allow one to re-index the existing objects.
Unfortunately I was unable to locate the file at this time.
What is your intentions for this type of program?
Renumber sheets/pages?
Label areas?
If labeling areas, a data table is involved and renumbering the areas
might cause unexpected results as the numbers will no longer align
to the table?
???
Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.