ENsetpatternvalue function

set pattern value