Maybe you would prefer to split the remainder evenly between the start and the end. (Yes, that would be the intent, but the 40'/5 segments (need to keep the segments @ 9' or less) and equally spaced. this would work out to 8'. No remainder).
For example, a 40 unit line cut into 9 unit lengths could make 4 segments with one 2 unit segment at each end. --|---------|---------|---------|---------|-- (40/9 = 4 rem 4)
OR, maybe if the remainder is small, you want to add 1/2 of it to the first and last segments. You would get to enter the maximum remainder. I am implying that maybe you want a tolerance so that there is no waste. (Correct, no waste) We don't want you throwing away little pieces of platinum bars.
You said you wanted to break the line at each point AND place an AutoCAD Point object at each break? (Yes, eventually I will work in a part number for each piece and the side the part number is on will determine the finish side). Might the lines also be polylines and maybe with arced segments as well? (Yes, this will apply to arcs also) It could make a difference as to the method to be used in the code, not that it would affect you or the results.
And I might as well ask now... do you want to process not just one line at a time but perhaps a selection of lines? (Yes) Might you want a filter to select lines of only certain layers or colors or linetypes or thicknesses or elevations or widths (polylines) or ltscales or lengths or combinations thereof? (Yes) Or inside or outside some boundary? (Yes) Maybe different filters for each day of the week or for each username or for whether the day of the year is odd or even or whether it's morning or afternoon or night? I'm not sure if we can filter based on the outside temperature or time 'til high tide (if you're in a coastal area). We certainly can't filter for any SSN without invading your privacy. Sounds like you may have run across this before,