Expanding Keywords
Overview
When obtaining information from Rhapsody properties through the API, the IRPApplication class has a very useful function:

This will automatically replce any $keywords such as $OMROOT with their real values.
But this also expands any system environment variable, or even custom variables you add to your Rhapsody.ini file!
For example:

Another variable which may be of use that is not in the environment variables but is built into Windows is $USERNAME which Rhapsody expands to your windows user name.