How to delete everything from a drawing

Hi !

I managed (with my approximative knowledges of VBA...) to write a macro which generates a title block in a drawing, filled with the parameters I enter in an Userform. The last step to program is to delete the current title block (including the picture in it) before creating the new one to avoid the notes to be superimposed on each other.

I suppose it isn't so complicated but I can't find it out, all the solutions I've tried failed. And recording macro can't help neither.

I simply want a command to "select all" and "delete selection" I guess. Any help would be appreciate, I'll try to bother you with more interesting problems next time

Thanks.

Sylv1

SolidworksApi macros