The envGetVal() method gets the default setting for the session, but it is also a per-window setting.
You can get the current window partial select setting using something like the following:
You can see other per-window settings (such as x and y snap spacing) using hiGetCurrentWindow()->??
Hope this helps.