How to model line pattern procedural

Is there a way to model a line pattern like u see below in a procedural manner?