I honestly am not sure where to start on this one, let's say I have a polyline with chamfers, I want to remove the chamfers, essentially restoring the polyline to what it was before using the chamfer command. I have thought about simply saving extended data to the entity of what the original vertexes were, but the problem with that approach would be if the polyline has been modified after adding the chamfers, then you would also loose those edits.
I am thinking I would have to specify a maximum chamfer size to remove, but beyond that, I am at a loss.