API Macro for Exporting 3D PDF using template

Is there a way to publish a 3D PDF using a specific template & adding all captured 3D views using a macro?
The task scheduler doesn't appear to let me select a template when exporting to a 3d PDF.
MbdApi macrosSOLIDWORKS3d pdf