Just curious, but instead of inserting and erasing ENTLAST, couldn't you follow the "Y" with a (command) to cancel the insertion after the redefinition??
You could, but quite honestly I did not consider it....
You know I can't get the routine to work.
I get the following error.
Command: -insert
Enter block name or [?] <cab>: _archtick=archtick2
Block _archtick references itself
Regenerating model.
*Invalid*
I changes the file name to see if that might be it.
I think ACAD protects the tick blocks some how.
Actually, what you will need to do, and perhaps I should have made this distinction before.
If you open a new drawing then draw a tickmark and save it, you will likely already have the tickmark defined as part of the default dimstyle.
Follow this procedure:
open a new drawing
make sure that "archtick" is not the default tick mark for any default dimension style
draw the tick mark centered on 0,0,0
set the line thickness
set color to byblock
set linetype to byblock
set layer to 0
purge the drawing until there are no layers other than 0 and no dimension or text styles other than standard
wblock the new archtick using 0,0,0 as the base point
now you should have no problem.