Read Data Card properties via API

Hello!

Can anyone point me in the right direction (or give a simple example) of how to read a Variable from EPDM using API.

I can do that w/out any problems utilizing SW custom properties, but its taking too much time to open the assembly with SW. I thought there should be an easier way of doing that.

I found an example :

2014 SOLIDWORKS API Help - Access File Card Variables Example (VB.NET)

but for some reason when I choose the part and click on Get Variables I`m getting a error:

HRESULT=0X80040203 You dont have permission to perform this action...

Thank you.

SolidworksSolidworks Pdm enterprise Pdm