How to offset face or surface?

Can you send me any example showing how to offset face or surface?

I try many ways and I get only SWX crashes.

SolidworksApi macros