The surface hatch placement on objects created from an extruded profile depends on two factors:
The desired extrusion direction depends on the object you want to extrude from the profile. A rail, for example, is extruded in the X direction. A railing post is extruded in the Z direction. Custom door and window shapes are extruded in the Y direction.
Face assignments from edges extruded in the X direction
Face assignments from edges extruded in the Y direction
Face assignments from edges extruded in the Z direction