Move dxf dash writing into separated function