I am trying to create a hatch but it's not picking up the boundary

Create a polyline over the shape and use the select icon instead to select the boundary