How do I use the values of custom variables to generate paths or file names? When I use Office to PDF and DraftSight to PDF Task

Hello,

I use SW PDM 2017 SP5, and I want use Office to PDF Task and DrafSight to PDF Task ,

But how do I use custom card's variable to generate paths or file names??

And I can do SW to PDF Task ,change [Outputpath], use {variable} replaced, that will make Success   !!

BUT,Office to PDF Task and DrafSight to PDF Task can not be Success   !!

SolidworksSolidworks Pdm/enterprise Pdm