PDMWE IEdmTemplate53

All,

I am attempting to run a PDMWE template from within Solidworks(topull a part number). However I am having trouble with theIEdmTemplate53 object.

To start I am just trying the Sample code from the help.

The code contains the following:
'Execute the template
Dim retData() As EdmData
Dim refreshFlag As Long
refreshFlag = temp.RunEx(Me.hWnd, folder.ID, retData)


When I run the code I get a type mismatch on the retDataindicating it is not an array.

Any help would be appreciated.

Thanks,
Corey VSolidworksApi macros