AddComponents in vb.net standalone

Hi.

I have some problems getting AddComponents/AddComponents3 to work in a vb.net standalone app.

I have tried the example macro's found in 2015 SolidWorks API Help - AddComponents3 Method (IAssemblyDoc) and these work in the Immediate window.

In my standalone I can add components with AddComponent4 but AddComponents does not work, the return value is nothing.

What can be the problem? is there something extra I have to do when it is a standalone app. The framework used is VB.Net 4.5

Thanks

/ Jakob

SolidworksApi macros