Is it possible to show preview of Boss-extrude feature ?

My goal is to insert tabs on a selected edge as seen in below Fig 1 but I need to see the preview before finalizing something as seen in Fig 2.

The tab width/length or number of tabs is input which can vary.

Is this possible?

SolidworksApi macros