Hook for EPDM Task Start

Hi Guys,

I am writing an EPDM addin and I wanted it to start when a Task begins to run.

I have tried

"poCmdMgr.AddHook(EdmCmdType.EdmCmd_TaskRun)"

and a bunch of other cmdtypes but no go so far.

Is this not possible?

Also if your curious why I would do something like this and not just write all the code in the original addin task is because I was hoping of using

the SWTASKADDIN template. But by using that I can not check in or check out the file so my modifications can not be applied to the file after the transition.

Any and all help would be greatly appreciated.


Thanks

SolidworksApi macros