Dimension internal line

hi everyone,
I have some trouble here, i tried to dimension multiply boundary curve (image), just internal line. For sure, a single polyline have a single vector with difference direction. Can someone give me any idea for these ?
Thank you!

luan 1.3dm (215.5 KB)