How to clear a view selection

Hi all,

i'd like to insert a sketch block on a drawing sheet programmatically on a button click.

Unfortunately it inserts the block on a view instead of the sheet when the user had a view selected.

How can i clear a view selection?

ActiveModel.Extension.Document.ClearSelection2(true);

or

ActiveModel.ClearSelection2(true);

didn't work for that.

Any ideas?

Thanks.

SolidworksApi macros