API to create midsurface

Hi

I am looking for a macro to create a midsurface  using Solidworks  for solidworks simulation

Regards

srini

SolidworksApi macros