Get variable from Data Card PDF file task runtime

I use VBA code in task to read Data Card variable for PDF file. But swTaskAddin.dll don't support explicit declaration of variables such as IEdmEnumeratorVariable7, EdmGetVarData and IEdmVariableValue6. Replacing the type of variables to Object causes an error during task execution. Is there any other way to read variables during task execution?

SolidworksSolidworks Pdm/enterprise Pdm