Automated Mortise & Tenon

Has anyone figured out how to do automated Mortise & Tenon joints? Preferably within the Weldments framework?

SolidworksGeneral