@Ajohnson0 wrote:
.... essentially all I want to do is have the CL block move and rotate with the p-line. Also delete with the p-line. ....
So clarify something for me.... The routine currently puts the Block in at zero rotation, regardless of the direction the Polyline runs, as in the left side here:

If that's what you need, then:
A) If put into Blocks, each one would need its own name, so some suffix numbering or something would need to be built into the code.
B) Your request to "have the CL block move and rotate with the p-line" doesn't seem to fit.
If you want the "move and rotate with " part, as in the right side of the image, and if the Polyline is always the same length and width, and the parts are always on their same Layers, you don't need a routine -- all you need is to simply define the combination as a Block, and Insert it wherever you want, giving it the appropriate rotation at each Insertion. Presumably it would be defined oriented as in the lower right in the image, and the insertion base point would be at the left end of the Polyline, so that in dragging for rotation, it will always "aim" in the direction of the cursor rubber-band from the insertion point, in the same was as the determination of the direction in the routine.
Kent Cooper, AIA