How do you sketch an aerofoil?

Has anyone built an equation driven sketch for a NACA 0018 section or simliar? When I enter the equation in the equation box it all looks good but produces a straight line.

This is the equation I want to use where t =0.18 for the percentage chord.

SolidworksSketching