How can I do it

As in the picture

How can I do it

Macro and so on.

Is there an easy way

Can it be done with a macro?

SolidworksWeldments