API Macro to Disable Automatic Cut Lists and Delete Existing Weldment Cut Lists

I want to first disable the "Automatically create cut lists" option in my weldments and then delete any existing cut lists.
Is there an API macro available for this?