dog bone slots macro

has anyone already writen a macro to create dogbone slots for lasercutting?

 

i found the following for fusion360:

 

 

this is what i want to create: