program an Event

how to program an Event and make it works?

SolidworksApi macros