How to transfer PropertyManagerPageNumberbox's value to variable intNum in MainSub Model

I test a PropertyManagerPage macro. I want to use PropertyManagerPage as inputing interface. User can adjust parameter ,click OK and transfer parameter value to Sub main to operate. But I can not get a way to do this. Are there any way to do it . 

This is my macro.

SolidworksApi/macros