I don't know if there was ever another LISP/Program to do this type of get length at least I never found one, my original just did what I needed, I have since made it more generally useful (I hope).
As per the drawing I will attach, I just need to get the length of the center between the inner and outer of the perimeter of guards, etc. to determine the unrolled length.
Normally the guards are 3D and I create the profiles with SOLPROF which creates an anonymous block (I used to change these with UNANON) or sometimes in the past I have used SOLVIEW and SOLDRAW, the same issue arises that you just can't select them and get the profile length.
So originally that's what this LISP was created to do (I still have some of the older basic versions).
I have upgraded it to it's current state and also still working on another version, but only small enhancements.
For inside a block that is scaled, you will need to multiply the results by the scale factor, working through a viewport the viewport needs to be active, so I might tackle those issues as well as make a more detailed CSV. I also will try to make sure it works in non-AutoCAD like BricsCAD, CMS IntelliCAD, nanoCAD, etc. when I get time.
I lightly tested in most situations, I have no idea how it acts on non-uniformly scaled blocks, though.
It handles gaps and slight overlaps, I have some settings at the top, hopefully with enough instructions to modify on your own.
Where I work (except for the machine shop which uses decimal inches) they use Architectural units, I did not double check this in Metric, so if someone would report back on that it would help.
Guard Test Met.dwg BlkLenTest.dwg
GETLEN_2.1.lsp
GETLEN_3.0 (2).lsp