#TASK not able to run macros

Hi everyone,

I've looked for a solution to this issue on the forums and other sites but haven't found it. I'm running Solidworks 2013 and trying to execute simple macros in #TASK. The save to PDF macro from their online library is just an example of something that should work but I get this error. (see attached).

"Generic error. This indicates that #TASK failed to run a macro. Please make sure that you can run macros in SolidWorks"

I can export PDFs in SW manually and record/run macros.

Looking forward to a solution.

Thanks!

SolidworksApi/macros