Show / Hide Note or Annotation

Can anybody who has dealt with this subject please help me?

I have some code :

It will hide the note but not make it visible

What am I doing wrong? Why does the code hide the note but cannot make it visible?

 

SolidworksApi macros