Is there a way to select all contours for extrusion features using macro?

Hello everyone,

Do you know if there is a way to select all the contours in a sketch using macro. I would like to extrude the specimen and it has so many contours, and if I want to select them manually it will take ages. I was thinking to write the code to select all contours automatically and extrude them.

I attached my model to this post.

Many thanks in advance,

Best Regards,

Mohamamd

SolidworksSketching