Could you add a point to each template that is unique for each template or does this already exist in you template?
This would create as many elements as you have barriers and the breakline would have gaps where that barrier does not exist.
A simple clearance or station offset report that uses only the surface features that you need to identify the barriers should not be hard to create.