OK - everything seems to work now!!!!
WOOHOO!
I included a setup file so the user can input what block name and attribute tag will be modified. It also asks you to set the scale of the block and an optional offset.
There are 2 things I would like to add to the program another time:
1. Allow the user to press escape to exit command (instead of clicking point or inputting data).
2. Rotate the block so that it is perpendicular to the polyline. This would just require me to determine the angle of the polyline at the insertion point of the block. . . I'm not quite sure how to do that though. I could go about it by drawing a line snapped perpendicular to the polyline at that point and subtracting 90 degrees from the angle of the line. . . but that seems like the long way around doesn't it? There must be a way to get to the segment in question, perhaps using (entnext), and then determing the angle of the segment. hmmmm
Any ideas? I'll check into this at a better hour
Program here if interested