How to offset face or surface and get pointer to that surface?

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

I know that InsertOffsetSurface is working but it doesn't return pointer to surface.

I try Body2.CreateOffsetSurface and Modeler.CreateOffsetSurface but I get only SWX crashes.

Does anybody know how to do that?

SolidworksApi macros