Draw line on mid of any polyline

rhino
curve
python
rhino5
unhandled

#1

Hello everyone!
I need to draw thickness marking on a poly-line. And it would be so nice if I could choose which direction and length of marking line from middle point.