Hide draw during macro

Hello to all,

I've got a problem. Is there a way for run a macro in background or hide the steps till I can get the final result? Thank you so much in advance.

Sara.

SolidworksApi macros