Create line with 'x' cm/in with different structure

is it possible to create line with 5in. width similar to shown in attached image

You can use the Shape.pathPattern: Custom Relationships

Try this:

    var slashPattern =
      $(go.Shape, { fill: null, geometryString: "M1 1 L6 10" });

    myDiagram.linkTemplate =
        $(go.Shape, { isPanelMain: true, strokeWidth: 10 }),
        $(go.Shape, { isPanelMain: true, strokeWidth: 8, stroke: "white", pathPattern: slashPattern })

You’ll have to adjust the actual strokeWidth and geometry heights to match your model’s coordinate scale needs.