Well, here's more issues. Since you have a 'nested' block within that main block ...
Remaining issues:
You said "Yes the blocks are already in the drawing and I would like to select them all and do
the increment numbering."
First issue is "I would like to select them all and do the increment numbering."
That implies you need to select 'all' blocks by that name. It depends on how you
pick that selection set. It can be truly 'All', and they would be incremented, the
question is, will they be in the 'order' you want, probably not.
If the selection set is picked by 'Window' or 'Crossing', the same applies. They may
not come out say top to bottom, right to left, etc. They will get incremented.
In order to make them sequential, AND in the order you want, you will have to pick each
block, in the order you want.
Question: Which 'block' did you insert there, I assume it was the "pileidblock" ?
If so, the following 'Explanation' applies.
Explanation:
When I do a List on the block "pileidblock" I get:
BLOCK REFERENCE Layer: "0"
Space: Model space
Handle = 2d5
Block Name: "pileidblock"
at point, X= 327.1310 Y= 78.9946 Z= 0.0000
X scale factor: 1.0000
Y scale factor: 1.0000
rotation angle: 0
Z scale factor: 1.0000
InsUnits: Inches
Unit conversion: 1.0000
Scale uniformly: No
Allow exploding: Yes
[After I explode the above block], it exposes a 'nested' block called "UMA15FTNAIL"
When I list that block, I get:
BLOCK REFERENCE Layer: "UM SYMBOLS"
Space: Model space
Handle = 2cf
Block Name: "UMA15FTNAIL"
at point, X= 326.5220 Y= 83.1370 Z= 0.0000
X scale factor: 1.0000
Y scale factor: 1.0000
rotation angle: 0
Z scale factor: 1.0000
InsUnits: Inches
Unit conversion: 1.0000
Scale uniformly: Yes
Allow exploding: Yes
ATTRIBUTE Layer: "UM MODEL SYMBOLS"
Space: Model space
Handle = 2d0
Style = "J"
Annotative: No
Typeface = Arial
end point, X= 326.1808 Y= 83.1495 Z= 0.0000
height 0.7500
value 001
tag WALLID <---------------------
rotation angle 0
width scale factor 1.0000
obliquing angle 0
flags normal
generation normal
........ more Attributes follow:
Note, the Attribute you want to Increment, is "WALLID", as shown above.
So, in order to set the increment # (string), into that Attribute's 'TextString Property
it must be 'unnested' from the main block "pileidblock" so it can be modified / updated.
IF you were to insert the block "UMA15FTNAIL" - instead of the main block "pileidblock",
we can change it readily. IF you still want to use the main block, then we would have
to 'explode' it, so it surfaces the nested block. And, you would have to 'repick' that
unnested block.
The program (could), just boldly go ahead and 'explode' all the "pileidblock" 's in the drawing,
that would 'surface' all the nested blocks within, and they would be pickable at that point.
Is that what you want to do ?
In summary, I think the approach would be to:
Select all the 'pileidblock' blocks, explode them (surfacing the nested block),
then set the increment #, by prompting you for it.
Next, while you pick each block seperatly, increment it, then you select the next block.
IF you pick nothing, ends the routine. You can Zoom / Pan around, then run the program again,
and so on.
Would that be what you need ?
ECCAD