Complex dashed line patterns

This might be a slight tangent from your specific question, but you can absolutely accomplish this type of behavior quite easily using the Node Material Editor and creating shaders.

Check out this thread: