Import sldmat into 3dexperience

How do I import material library used in solidworks into 3dexperience to be used in catia? I tried using vbscript to traverse the sldmat xml and create the materials using create core material API, but it fails with Licence error; though I am able to interactively create materials.

Edu ​​​​​​​3DEXPERIENCE ​​​​​​​SOLIDWORKS ​​​​​​​