Create rectangle as polylines and fill it with hatch

How to create rectangle as polylines and fill it with hatch

Issue: How to create rectangle as polylines and fill it with hatch (CADNET-1351).

Tips: To do this, create a CadLwPolyline and add point coordinates to it, use CadHatch to work with color and use CadEdgeBoundaryPath to connect, use CadHatch to work with angles and CadHatchPatternData for pattern.

Example: